miniapp-web-jsapi
Advanced tools
Comparing version 2.12.0-alpha.37 to 2.12.0-alpha.38
/*! For license information please see index.js.LICENSE.txt */ | ||
(()=>{var t={564:(t,e,n)=>{"use strict";var r=n(357).isUnitlessNumber,o=n(521),i=Array.isArray,c=Object.keys,a=/^(normal|none|(\b(url\([^)]*\)|chapter_counter|attr\([^)]*\)|(no-)?(open|close)-quote|inherit)((\b\s*)|$|\s+))+)$/;function l(t,e){return r[t]||"number"!=typeof e?"content"!==t||a.test(e)||(e="'"+e.replace(/'/g,"\\'")+"'"):e+="px",o(t)+": "+e+"; "}t.exports=function(t){var e="";if(!t||0===c(t).length)return e;for(var n=c(t),r=0,o=n.length;r<o;r++){var a=n[r],s=t[a];if(i(s))for(var u=0,f=s.length;u<f;u++)e+=l(a,s[u]);else e+=l(a,s)}return e}},357: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},521: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-")}},61:(t,e,n)=>{var r=n(698).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,c="function"==typeof Symbol?Symbol:{},a=c.iterator||"@@iterator",l=c.asyncIterator||"@@asyncIterator",s=c.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=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),c=new A(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 c=n.delegate;if(c){var a=x(c,n);if(a){if(a===d)continue;return a}}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 l=p(t,e,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===d)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}(t,n,c),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={};u(y,a,(function(){return this}));var g=Object.getPrototypeOf,$=g&&g(g(_([])));$&&$!==n&&i.call($,a)&&(y=$);var b=m.prototype=h.prototype=Object.create(y);function w(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function n(o,c,a,l){var s=p(t[o],t,c);if("throw"!==s.type){var u=s.arg,f=u.value;return f&&"object"==r(f)&&i.call(f,"__await")?e.resolve(f.__await).then((function(t){n("next",t,a,l)}),(function(t){n("throw",t,a,l)})):e.resolve(f).then((function(t){u.value=t,a(u)}),(function(t){return n("throw",t,a,l)}))}l(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 x(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,x(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 E(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 S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function _(t){if(t){var e=t[a];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,u(b,"constructor",m),u(m,"constructor",v),v.displayName=u(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,u(t,s,"GeneratorFunction")),t.prototype=Object.create(b),t},e.awrap=function(t){return{__await:t}},w(O.prototype),u(O.prototype,l,(function(){return this})),e.AsyncIterator=O,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var c=new O(f(t,n,r,o),i);return e.isGeneratorFunction(n)?c:c.next().then((function(t){return t.done?t.value:c.next()}))},w(b),u(b,s,"Generator"),u(b,a,(function(){return this})),u(b,"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=_,A.prototype={constructor:A,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(S),!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 c.type="throw",c.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],c=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var a=i.call(o,"catchLoc"),l=i.call(o,"finallyLoc");if(a&&l){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(a){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!l)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 c=o?o.completion:{};return c.type=t,c.arg=e,o?(this.method="next",this.next=o.finallyLoc,d):this.complete(c)},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),S(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;S(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:_(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},698: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},687:(t,e,n)=>{var r=n(61)();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),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};(()=>{"use strict";function t(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n.r(r),n.d(r,{AppNameEnums:()=>M,EnvironmentEnums:()=>T,SiteNameEnums:()=>I,buildNavigateUrl:()=>L,createUnsupportedJsApi:()=>ze,getEnvironment:()=>C,getWebPolyfillOptions:()=>P,getWebQueryParams:()=>k,initWebPolyfill:()=>_,registerJsApiExtension:()=>Ge});const e=require("axios");var o=n.n(e);function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(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 a(t,e,n){return e&&c(t.prototype,e),n&&c(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function l(t){var e=[];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.push([n,t[n]]);return e}var s=function(){function t(){i(this,t)}return a(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 l(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 u(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 f(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?u(Object(r),!0).forEach((function(n){t(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var p={success:!1,errorCode:"AE15015999000001",errorMessage:"System error, please try again later"};function d(t){return t?decodeURIComponent(t):t}function h(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function v(t,e){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},v(t,e)}function m(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&&v(t,e)}function y(t){return y="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},y(t)}function g(t,e){if(e&&("object"===y(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return h(t)}function $(t){return $=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},$(t)}function b(t,e,n){return b=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&&v(o,n.prototype),o},b.apply(null,arguments)}function w(t){var e="function"==typeof Map?new Map:void 0;return w=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 b(t,arguments,$(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),v(r,t)},w(t)}var O=function(e){m(c,e);var n,r,o=(n=c,r=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}}(),function(){var t,e=$(n);if(r){var o=$(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return g(this,t)});function c(e){var n;return i(this,c),t(h(n=o.call(this,e)),"resultStatus",void 0),t(h(n),"memo",void 0),t(h(n),"tips",void 0),t(h(n),"extraMessage",void 0),t(h(n),"traceId",void 0),n}return a(c)}(w(Error));function x(t){var e,n=t.appId,r=t.path,o=t.extraData,i=t.parameters,c=window.location,a=D(),l=W();e=U(c.host)?"".concat(c.origin,"?site=").concat(a,"&app=").concat(l):"".concat(c.origin,"/page/aplus-miniapps/").concat(t.appId,"/index.html?site=").concat(a,"&app=").concat(l);var u=s.encodeMap(i);null!=u&&u.length&&(e+="&".concat(u));var f=s.encodeMap(o);null!=f&&f.length&&(e+="&query=".concat(encodeURIComponent(f)));var p,d=F();n!==d&&(p={appId:d||""});var h=s.encodeMap(p);return null!=h&&h.length&&(e+="&referrerInfo=".concat(encodeURIComponent(h))),r&&(e+="#".concat(r)),e}var E,S,A=function(t){return"".concat("alipay-mwj","-").concat(t)};function _(t){E=t}function P(){return E}function k(){return S||(S=function(){var t={};l(H(window.location.search)).forEach((function(e){var n=e[0],r=e[1],o=n.toLowerCase();if("query"===o)try{t.query=H(r)}catch(t){console.warn("parse query error: ",t)}else"referrerinfo"===o?t.referrerInfo=H(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=H(e)}return t}()),S}var j,N,T=function(t){return t.STABLE="STABLE",t.TEST="TEST",t.PRE="PRE",t.PROD="PROD",t}({});function C(){var t;return j||(t=window.location.host,j=U(t)?T.STABLE:t.endsWith(".test.alipay.net")||"oss-local-test.marmot-cloud.com"===t?T.TEST:t.endsWith(".alipay.net")||"oss-local-dev.marmot-cloud.com"===t?T.STABLE:t.endsWith(".pre.ac.alipay.com")?T.PRE:T.PROD),j}function L(t){var e,n=P();return((null==n||null===(e=n.navigateOptions)||void 0===e?void 0:e.buildNavigateToAppUrl)||x)(t)}var I=function(t){return 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",t}({}),M=function(t){return t.alipayhk="alipayhk",t.alipaymo="alipaymo",t.gcash="gcash",t.tngd="tngd",t.dana="dana",t.kakaopay="kakaopay",t}({}),R=(t(N={},I.ALIPAY_HK,M.alipayhk),t(N,I.ALIPAY_MO,M.alipaymo),t(N,I.GCASH,M.gcash),t(N,I.DANA,M.dana),t(N,I.TNG,M.tngd),t(N,I.KAKAOPAY,M.kakaopay),N);function B(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 D(){var t,e=null===(t=P())||void 0===t?void 0:t.siteName;return s.isNotEmpty(e)?e:(e=k().site,s.isNotEmpty(e)?e:void console.error("no siteName! please specify siteName in initWebPolyfill(...)"))}function W(){var t,e=null===(t=P())||void 0===t?void 0:t.appName;if(s.isNotEmpty(e))return e;if(e=k().app,s.isNotEmpty(e))return e;var n=D();if(e=R[n||""],s.isNotEmpty(e))return e;console.error("no appName! please specify appName in initWebPolyfill(...)")}function F(){var t,e,n=null===(t=P())||void 0===t?void 0:t.appId;if(s.isNotEmpty(n))return n;var r=null===(e=window.location.pathname)||void 0===e?void 0:e.match(/^\/page\/aplus-miniapps\/(\d{8,}).*/);if(2===(null==r?void 0:r.length))return r[1];console.error("no AppId! please specify AppId in initWebPolyfill(...)")}function H(t){var e,n={};if(s.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}function U(t){return"localhost"===t||/^localhost:[0-9]+$/.test(t)||/^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+:[0-9]+$/.test(t)}function K(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 G(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?K(Object(r),!0).forEach((function(n){t(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):K(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function z(e){var n=e.success,r=e.fail,i=e.complete,c=e.operationType,a=e.requestData,l=e.gateway,u=e.headers,h=function(){var e,n,r,o=function(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?B(Object(r),!0).forEach((function(n){t(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):B(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},null===(e=P())||void 0===e?void 0:e.rpcOptions);return o.gatewayUrl||(o.gatewayUrl=(n=C())===T.STABLE?"http://imgs-2.sggz00b.stable.alipay.net/imgw.htm":n===T.TEST?"http://imgs-ztt-0.sggz00a.test.alipay.net/mgw.htm":n===T.PRE?"https://imgs-sea-pre.alipay.com/imgw.htm":"https://imgs-ac.alipay.com/imgw.htm"),o.workspaceId||(o.gatewayUrl.indexOf("pre")>0?o.workspaceId="pre":o.workspaceId="default"),o.appId||(o.appId=(r=W())===M.alipayhk?"BE9C457241710":r===M.alipaymo?"ALIPAY_WALLET_MO":r===M.gcash?"GCASH_WALLET_PH":r===M.tngd?"TNGD_WALLET_MY":r===M.dana?"DANA_WALLET_ID":r===M.kakaopay?"KAKAOPAY_WALLET_KR":(console.error("Cannot find Rpc AppId for ".concat(r,"!")),"UNKNOWN_APP_ID")),o}(),v=G(G(G(G(G({},h.appId?{AppId:h.appId}:{}),h.workspaceId?{WorkspaceId:h.workspaceId}:{}),h.headers),u),{},t({"Operation-Type":c,"Content-Type":"application/json"},"X-CORS-".concat(h.appId,"-").concat(h.workspaceId),"1")),m=l||h.gatewayUrl,y=function(t){null==r||r(t),null==i||i()},g={method:"post",url:m,timeout:3e4,headers:v,data:a,withCredentials:!0};o()(g).then((function(t){var e=null;try{e=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 f(f({},p),{},{errorMessage:s.isNotEmpty(t)?t:p.errorMessage,memo:s.isString(e)?e:"".concat(e),traceId:n})}(d(t.headers.tips),d(t.headers.memo),n);var r=null;if(s.isString(e)){if(null==(r=s.parseObjectSafe(e)))return e}else r=e;return s.isEmpty(r.traceId)&&(r.traceId=n),r}(t);throw function(t,e){var n=d(t.headers.tips),r=d(t.headers.memo),o=new O("".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 y(t)}null==n||n(e),null==i||i()})).catch((function(t){y(t)}))}function Y(t,e,n,r,o,i,c){try{var a=t[i](c),l=a.value}catch(t){return void n(t)}a.done?e(l):Promise.resolve(l).then(r,o)}var q=n(687),V=n.n(q);function J(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 Q(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?J(Object(r),!0).forEach((function(n){t(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):J(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function X(){var t;return t=V().mark((function t(e){var n,r,i;return V().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e){t.next=2;break}return t.abrupt("return");case 2:n=function(t){if(200!==t)return 19},r=function(t){return"text"===t?"text/plain":"base64"!==t?"application/json":void 0},i={url:e.url,method:e.method,headers:Q(Q({},e.headers),{},{Accept:r(e.dataType)}),timeout:e.timeout,withCredentials:!0},"GET"===e.method?i.params=e.data:i.data=e.data,o().request(i).then((function(t){var r,o;null===(r=e.success)||void 0===r||r.call(e,{status:n(t.status),data:t.data,headers:t.headers}),null===(o=e.complete)||void 0===o||o.call(e,{})})).catch((function(t){var n,r;null===(n=e.fail)||void 0===n||n.call(e,t),null===(r=e.complete)||void 0===r||r.call(e,{})}));case 7:case"end":return t.stop()}}),t)})),X=function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function c(t){Y(i,r,o,c,a,"next",t)}function a(t){Y(i,r,o,c,a,"throw",t)}c(void 0)}))},X.apply(this,arguments)}new Set;const Z="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;class tt{_listeners="WeakMap"in Z?new WeakMap:void 0;_observer=void 0;options;constructor(t){this.options=t}observe(t,e){return this._listeners.set(t,e),this._getObserver().observe(t,this.options),()=>{this._listeners.delete(t),this._observer.unobserve(t)}}_getObserver(){return this._observer??(this._observer=new ResizeObserver((t=>{for(const e of t)tt.entries.set(e.target,e),this._listeners.get(e.target)?.(e)})))}}tt.entries="WeakMap"in Z?new WeakMap:void 0;let et,nt=!1;function rt(t,e){t.appendChild(e)}function ot(t,e,n){t.insertBefore(e,n||null)}function it(t){t.parentNode&&t.parentNode.removeChild(t)}function ct(t){return document.createElement(t)}function at(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function lt(t){return document.createTextNode(t)}function st(){return lt(" ")}function ut(t,e,n,r){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n,r)}function ft(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function pt(t,e){e=""+e,t.data!==e&&(t.data=e)}function dt(){}function ht(t){return t()}function vt(){return Object.create(null)}function mt(t){t.forEach(ht)}function yt(t){return"function"==typeof t}function gt(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function $t(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 bt(t){return null==t?"":t}function wt(t){et=t}function Ot(){if(!et)throw new Error("Function called outside component initialization");return et}function xt(t){Ot().$$.on_mount.push(t)}new Map;const Et=[],St=[];let At=[];const _t=[],Pt=Promise.resolve();let kt=!1;function jt(t){At.push(t)}const Nt=new Set;let Tt=0;function Ct(){if(0!==Tt)return;const t=et;do{try{for(;Tt<Et.length;){const t=Et[Tt];Tt++,wt(t),Lt(t.$$)}}catch(t){throw Et.length=0,Tt=0,t}for(wt(null),Et.length=0,Tt=0;St.length;)St.pop()();for(let t=0;t<At.length;t+=1){const e=At[t];Nt.has(e)||(Nt.add(e),e())}At.length=0}while(Et.length);for(;_t.length;)_t.pop()();kt=!1,Nt.clear(),wt(t)}function Lt(t){if(null!==t.fragment){t.update(),mt(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(jt)}}const It=new Set;let Mt,Rt;function Bt(t,e){t&&t.i&&(It.delete(t),t.i(e))}function Dt(t,e,n,r){if(t&&t.o){if(It.has(t))return;It.add(t),Mt.c.push((()=>{It.delete(t),r&&(n&&t.d(1),r())})),t.o(e)}else r&&r()}function Wt(t){t&&t.c()}function Ft(t,e,n){const{fragment:r,after_update:o}=t.$$;r&&r.m(e,n),jt((()=>{const e=t.$$.on_mount.map(ht).filter(yt);t.$$.on_destroy?t.$$.on_destroy.push(...e):mt(e),t.$$.on_mount=[]})),o.forEach(jt)}function Ht(t,e){const n=t.$$;null!==n.fragment&&(function(t){const e=[],n=[];At.forEach((r=>-1===t.indexOf(r)?e.push(r):n.push(r))),n.forEach((t=>t())),At=e}(n.after_update),mt(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function Ut(t,e,n,r,o,i,c=null,a=[-1]){const l=et;wt(t);const s=t.$$={fragment:null,ctx:[],props:i,update:dt,not_equal:o,bound:vt(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(l?l.$$.context:[])),callbacks:vt(),dirty:a,skip_bound:!1,root:e.target||l.$$.root};c&&c(s.root);let u=!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),u&&function(t,e){-1===t.$$.dirty[0]&&(Et.push(t),kt||(kt=!0,Pt.then(Ct)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}(t,e)),n})):[],s.update(),u=!0,mt(s.before_update),s.fragment=!!r&&r(s.ctx),e.target){if(e.hydrate){nt=!0;const t=(f=e.target,Array.from(f.childNodes));s.fragment&&s.fragment.l(t),t.forEach(it)}else s.fragment&&s.fragment.c();e.intro&&Bt(t.$$.fragment),Ft(t,e.target,e.anchor),nt=!1,Ct()}var f;wt(l)}function Kt(t,e,n,r){const o=n[t]?.type;if(e="Boolean"===o&&"boolean"!=typeof e?null!=e:e,!r||!n[t])return e;if("toAttribute"===r)switch(o){case"Object":case"Array":return null==e?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return null==e?null:e;default:return e}else switch(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":default:return e;case"Number":return null!=e?+e:e}}new Set(["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"]),"function"==typeof HTMLElement&&(Rt=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;constructor(t,e,n){super(),this.$$ctor=t,this.$$s=e,n&&this.attachShadow({mode:"open"})}addEventListener(t,e,n){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(e),this.$$c){const n=this.$$c.$on(t,e);this.$$l_u.set(e,n)}super.addEventListener(t,e,n)}removeEventListener(t,e,n){if(super.removeEventListener(t,e,n),this.$$c){const t=this.$$l_u.get(e);t&&(t(),this.$$l_u.delete(e))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){if(await Promise.resolve(),!this.$$cn||this.$$c)return;function t(t){return()=>{let e;return{c:function(){e=ct("slot"),"default"!==t&&ft(e,"name",t)},m:function(t,n){ot(t,e,n)},d:function(t){t&&it(e)}}}}const e={},n=function(t){const e={};return t.childNodes.forEach((t=>{e[t.slot||"default"]=!0})),e}(this);for(const o of this.$$s)o in n&&(e[o]=[t(o)]);for(const i of this.attributes){const c=this.$$g_p(i.name);c in this.$$d||(this.$$d[c]=Kt(c,i.value,this.$$p_d,"toProp"))}for(const a in this.$$p_d)a in this.$$d||void 0===this[a]||(this.$$d[a]=this[a],delete this[a]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:{...this.$$d,$$slots:e,$$scope:{ctx:[]}}});const r=()=>{this.$$r=!0;for(const t in this.$$p_d)if(this.$$d[t]=this.$$c.$$.ctx[this.$$c.$$.props[t]],this.$$p_d[t].reflect){const e=Kt(t,this.$$d[t],this.$$p_d,"toAttribute");null==e?this.removeAttribute(this.$$p_d[t].attribute||t):this.setAttribute(this.$$p_d[t].attribute||t,e)}this.$$r=!1};this.$$c.$$.after_update.push(r),r();for(const l in this.$$l)for(const s of this.$$l[l]){const u=this.$$c.$on(l,s);this.$$l_u.set(s,u)}this.$$l={}}}attributeChangedCallback(t,e,n){this.$$r||(t=this.$$g_p(t),this.$$d[t]=Kt(t,n,this.$$p_d,"toProp"),this.$$c?.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then((()=>{this.$$cn||(this.$$c.$destroy(),this.$$c=void 0)}))}$$g_p(t){return Object.keys(this.$$p_d).find((e=>this.$$p_d[e].attribute===t||!this.$$p_d[e].attribute&&e.toLowerCase()===t))||t}});class Gt{$$=void 0;$$set=void 0;$destroy(){Ht(this,1),this.$destroy=dt}$on(t,e){if(!yt(e))return dt;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){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}var zt=n(564),Yt=n.n(zt);function qt(t){let e,n,r;const o=t[7].default,i=function(t,e,n,r){if(t){const r=$t(t,e,n,null);return t[0](r)}}(o,t,t[6]);return{c(){e=ct("div"),i&&i.c(),ft(e,"class",n=bt(t[0]?`${t[2]} ${t[0]}`:t[2])+" svelte-1l3ztq7"),ft(e,"style",t[1])},m(t,n){ot(t,e,n),i&&i.m(e,null),r=!0},p(t,[c]){i&&i.p&&(!r||64&c)&&function(t,e,n,r,o,i){if(o){const c=$t(e,n,r,i);t.p(c,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=bt(t[0]?`${t[2]} ${t[0]}`:t[2])+" svelte-1l3ztq7"))&&ft(e,"class",n),(!r||2&c)&&ft(e,"style",t[1])},i(t){r||(Bt(i,t),r=!0)},o(t){Dt(i,t),r=!1},d(t){t&&it(e),i&&i.d(t)}}}function Vt(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 Jt(e,n,r){let o,{$$slots:i={},$$scope:c}=n;var a=A("modal");let{duration:l}=n,{afterClose:s=function(){}}=n,{className:u=""}=n,{style:f={}}=n;return setTimeout((function(){l&&l>0&&s()}),l&&l>0?l:0),e.$$set=t=>{"duration"in t&&r(3,l=t.duration),"afterClose"in t&&r(4,s=t.afterClose),"className"in t&&r(0,u=t.className),"style"in t&&r(5,f=t.style),"$$scope"in t&&r(6,c=t.$$scope)},e.$$.update=()=>{32&e.$$.dirty&&r(1,o=Yt()(function(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?Vt(Object(r),!0).forEach((function(n){t(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Vt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({zIndex:999999},f)))},[u,o,a,l,s,f,c,i]}const Qt=class extends Gt{constructor(t){super(),Ut(this,t,Jt,qt,gt,{duration:3,afterClose:4,className:0,style:5})}};function Xt(t){let e,n,r;return{c(){e=ct("span"),n=lt(t[1]),ft(e,"class",r=t[5]+"-text svelte-1pl0sex")},m(t,r){ot(t,e,r),rt(e,n)},p(t,e){2&e&&pt(n,t[1])},d(t){t&&it(e)}}}function Zt(t){let e,n,r,o,i,c,a,l,s,u,f,p,d,h,v,m,y,g=(t[0]||"")+"",$=(t[2]||"OK")+"",b=t[4]&&Xt(t);return{c(){e=ct("div"),n=ct("div"),r=ct("span"),o=lt(g),c=st(),b&&b.c(),a=st(),l=ct("div"),u=st(),f=ct("span"),p=lt($),ft(r,"class",i=t[5]+"-title svelte-1pl0sex"),ft(l,"class",s=t[5]+"-line svelte-1pl0sex"),ft(f,"class",d=t[5]+"-button svelte-1pl0sex"),ft(n,"class",h=t[5]+"-content svelte-1pl0sex"),ft(e,"class",v=bt(t[5])+" svelte-1pl0sex")},m(i,s){ot(i,e,s),rt(e,n),rt(n,r),rt(r,o),rt(n,c),b&&b.m(n,null),rt(n,a),rt(n,l),rt(n,u),rt(n,f),rt(f,p),m||(y=ut(f,"click",(function(){yt(t[3])&&t[3].apply(this,arguments)})),m=!0)},p(e,r){t=e,1&r&&g!==(g=(t[0]||"")+"")&&pt(o,g),t[4]?b?b.p(t,r):(b=Xt(t),b.c(),b.m(n,a)):b&&(b.d(1),b=null),4&r&&$!==($=(t[2]||"OK")+"")&&pt(p,$)},d(t){t&&it(e),b&&b.d(),m=!1,y()}}}function te(t){let e,n;return e=new Qt({props:{$$slots:{default:[Zt]},$$scope:{ctx:t}}}),{c(){Wt(e.$$.fragment)},m(t,r){Ft(e,t,r),n=!0},p(t,[n]){const r={};95&n&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Bt(e.$$.fragment,t),n=!0)},o(t){Dt(e.$$.fragment,t),n=!1},d(t){Ht(e,t)}}}function ee(t,e,n){let r,{title:o}=e,{content:i}=e,{buttonText:c}=e,{onClose:a}=e;var l=A("alert");return t.$$set=t=>{"title"in t&&n(0,o=t.title),"content"in t&&n(1,i=t.content),"buttonText"in t&&n(2,c=t.buttonText),"onClose"in t&&n(3,a=t.onClose)},t.$$.update=()=>{2&t.$$.dirty&&n(4,r=s.isNotEmpty(i))},[o,i,c,a,r,l]}const ne=class extends Gt{constructor(t){super(),Ut(this,t,ee,te,gt,{title:0,content:1,buttonText:2,onClose:3})}};function re(t){let e,n,r;return{c(){e=ct("span"),n=lt(t[0]),ft(e,"class",r=t[7]+"-title svelte-1rtcbed")},m(t,r){ot(t,e,r),rt(e,n)},p(t,e){1&e&&pt(n,t[0])},d(t){t&&it(e)}}}function oe(t){let e,n,r;return{c(){e=ct("span"),n=lt(t[1]),ft(e,"class",r=t[7]+"-text svelte-1rtcbed")},m(t,r){ot(t,e,r),rt(e,n)},p(t,e){2&e&&pt(n,t[1])},d(t){t&&it(e)}}}function ie(t){let e,n,r,o,i,c,a,l,s,u,f,p,d,h,v,m,y,g,$,b,w=(t[3]||"Cancel")+"",O=(t[2]||"OK")+"",x=t[5]&&re(t),E=t[6]&&oe(t);return{c(){e=ct("div"),n=ct("div"),x&&x.c(),r=st(),E&&E.c(),o=st(),i=ct("div"),a=st(),l=ct("div"),s=ct("span"),u=lt(w),p=st(),d=ct("span"),h=lt(O),ft(i,"class",c=t[7]+"-line svelte-1rtcbed"),ft(s,"class",f=t[7]+"-cancel svelte-1rtcbed"),ft(d,"class",v=t[7]+"-button svelte-1rtcbed"),ft(l,"class",m=t[7]+"-buttonContent svelte-1rtcbed"),ft(n,"class",y=t[7]+"-content svelte-1rtcbed"),ft(e,"class",g=bt(t[7])+" svelte-1rtcbed")},m(c,f){ot(c,e,f),rt(e,n),x&&x.m(n,null),rt(n,r),E&&E.m(n,null),rt(n,o),rt(n,i),rt(n,a),rt(n,l),rt(l,s),rt(s,u),rt(l,p),rt(l,d),rt(d,h),$||(b=[ut(s,"click",t[8]),ut(d,"click",t[9])],$=!0)},p(t,e){t[5]?x?x.p(t,e):(x=re(t),x.c(),x.m(n,r)):x&&(x.d(1),x=null),t[6]?E?E.p(t,e):(E=oe(t),E.c(),E.m(n,o)):E&&(E.d(1),E=null),8&e&&w!==(w=(t[3]||"Cancel")+"")&&pt(u,w),4&e&&O!==(O=(t[2]||"OK")+"")&&pt(h,O)},d(t){t&&it(e),x&&x.d(),E&&E.d(),$=!1,mt(b)}}}function ce(t){let e,n;return e=new Qt({props:{$$slots:{default:[ie]},$$scope:{ctx:t}}}),{c(){Wt(e.$$.fragment)},m(t,r){Ft(e,t,r),n=!0},p(t,[n]){const r={};1151&n&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Bt(e.$$.fragment,t),n=!0)},o(t){Dt(e.$$.fragment,t),n=!1},d(t){Ht(e,t)}}}function ae(t,e,n){let r,o,{title:i}=e,{content:c}=e,{confirmButtonText:a}=e,{cancelButtonText:l}=e,{onClose:u}=e;var f=A("confirm");return t.$$set=t=>{"title"in t&&n(0,i=t.title),"content"in t&&n(1,c=t.content),"confirmButtonText"in t&&n(2,a=t.confirmButtonText),"cancelButtonText"in t&&n(3,l=t.cancelButtonText),"onClose"in t&&n(4,u=t.onClose)},t.$$.update=()=>{2&t.$$.dirty&&n(6,r=s.isNotEmpty(c)),1&t.$$.dirty&&n(5,o=s.isNotEmpty(i))},[i,c,a,l,u,o,r,f,()=>u(!1),()=>u(!0)]}const le=class extends Gt{constructor(t){super(),Ut(this,t,ae,ce,gt,{title:0,content:1,confirmButtonText:2,cancelButtonText:3,onClose:4})}};function se(t){setTimeout(t,0)}function ue(t){var e=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}}();return function(){var n,r=$(t);if(e){var o=$(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return g(this,n)}}var fe=function(){function e(n){i(this,e),t(this,"elements",void 0),this.elements=n}return a(e,[{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]}}]),e}(),pe=function(t){m(n,t);var e=ue(n);function n(){return i(this,n),e.apply(this,arguments)}return a(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}(fe),de=function(t){m(n,t);var e=ue(n);function n(){return i(this,n),e.apply(this,arguments)}return a(n,[{key:"execute",value:function(){return this.map((function(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}))}}]),n}(fe),he=function(t){m(n,t);var e=ue(n);function n(){return i(this,n),e.apply(this,arguments)}return a(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}(fe),ve=function(t){return t.ToastHide="ToastHide",t.LoadingHide="LoadingHide",t}(ve||{});const me=ve;function ye(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}var ge=new(function(){function e(n){i(this,e),t(this,"managerName",void 0),t(this,"listenersMap",{}),this.managerName=n}return a(e,[{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 ye(t)}(n)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(n)||function(t,e){if(t){if("string"==typeof t)return ye(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)?ye(t,e):void 0}}(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)}))}}]),e}())("default");function $e(t){let e,n,r,o;return{c(){e=at("svg"),n=at("g"),r=at("path"),o=at("path"),ft(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"),ft(r,"fill","#FFF"),ft(o,"stroke","#FFF"),ft(o,"stroke-width","2"),ft(o,"d","M19 34.54l11.545 11.923L52.815 24"),ft(n,"fill","none"),ft(n,"fill-rule","evenodd"),ft(e,"class",t[0]),ft(e,"xmlns","http://www.w3.org/2000/svg"),ft(e,"viewBox","0 0 72 72")},m(t,i){ot(t,e,i),rt(e,n),rt(n,r),rt(n,o)},p(t,[n]){1&n&&ft(e,"class",t[0])},i:dt,o:dt,d(t){t&&it(e)}}}function be(t,e,n){let{className:r}=e;return t.$$set=t=>{"className"in t&&n(0,r=t.className)},[r]}const we=class extends Gt{constructor(t){super(),Ut(this,t,be,$e,gt,{className:0})}};function Oe(t){let e,n,r,o;return{c(){e=at("svg"),n=at("g"),r=at("path"),o=at("path"),ft(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"),ft(r,"fill","#FFF"),ft(o,"d","M22 22l28.304 28.304m-28.304 0L50.304 22"),ft(o,"stroke","#FFF"),ft(o,"stroke-width","2"),ft(n,"fill","none"),ft(n,"fill-rule","evenodd"),ft(e,"class",t[0]),ft(e,"xmlns","http://www.w3.org/2000/svg"),ft(e,"viewBox","0 0 72 72")},m(t,i){ot(t,e,i),rt(e,n),rt(n,r),rt(n,o)},p(t,[n]){1&n&&ft(e,"class",t[0])},i:dt,o:dt,d(t){t&&it(e)}}}function xe(t,e,n){let{className:r}=e;return t.$$set=t=>{"className"in t&&n(0,r=t.className)},[r]}const Ee=class extends Gt{constructor(t){super(),Ut(this,t,xe,Oe,gt,{className:0})}};function Se(t){let e,n,r,o,i;return{c(){e=at("svg"),n=at("g"),r=at("path"),o=at("path"),i=at("path"),ft(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"),ft(r,"fill","#FFF"),ft(o,"fill","#FFF"),ft(o,"d","M47 22h2v6h-2zm-24 0h2v6h-2z"),ft(i,"d","M21 51s4.6-7 15-7 15 7 15 7"),ft(i,"stroke","#FFF"),ft(i,"stroke-width","2"),ft(n,"fill","none"),ft(n,"fill-rule","evenodd"),ft(e,"class",t[0]),ft(e,"xmlns","http://www.w3.org/2000/svg"),ft(e,"viewBox","0 0 72 72")},m(t,c){ot(t,e,c),rt(e,n),rt(n,r),rt(n,o),rt(n,i)},p(t,[n]){1&n&&ft(e,"class",t[0])},i:dt,o:dt,d(t){t&&it(e)}}}function Ae(t,e,n){let{className:r}=e;return t.$$set=t=>{"className"in t&&n(0,r=t.className)},[r]}const _e=class extends Gt{constructor(t){super(),Ut(this,t,Ae,Se,gt,{className:0})}};function Pe(t){let e,n;return e=new _e({props:{className:t[4]+"-icon"}}),{c(){Wt(e.$$.fragment)},m(t,r){Ft(e,t,r),n=!0},p:dt,i(t){n||(Bt(e.$$.fragment,t),n=!0)},o(t){Dt(e.$$.fragment,t),n=!1},d(t){Ht(e,t)}}}function ke(t){let e,n;return e=new Ee({props:{className:t[4]+"-icon"}}),{c(){Wt(e.$$.fragment)},m(t,r){Ft(e,t,r),n=!0},p:dt,i(t){n||(Bt(e.$$.fragment,t),n=!0)},o(t){Dt(e.$$.fragment,t),n=!1},d(t){Ht(e,t)}}}function je(t){let e,n;return e=new we({props:{className:t[4]+"-icon"}}),{c(){Wt(e.$$.fragment)},m(t,r){Ft(e,t,r),n=!0},p:dt,i(t){n||(Bt(e.$$.fragment,t),n=!0)},o(t){Dt(e.$$.fragment,t),n=!1},d(t){Ht(e,t)}}}function Ne(t){let e,n,r,o,i,c,a,l,s;const u=[je,ke,Pe],f=[];function p(t,e){return"success"===t[1]?0:"fail"===t[1]?1:"exception"===t[1]?2:-1}return~(n=p(t))&&(r=f[n]=u[n](t)),{c(){e=ct("div"),r&&r.c(),o=st(),i=ct("span"),c=lt(t[0]),ft(i,"class",a=t[4]+"-text svelte-13dnj4p"),ft(e,"class",l=bt(t[4])+" svelte-13dnj4p")},m(t,r){ot(t,e,r),~n&&f[n].m(e,null),rt(e,o),rt(e,i),rt(i,c),s=!0},p(t,i){let a=n;n=p(t),n===a?~n&&f[n].p(t,i):(r&&(Mt={r:0,c:[],p:Mt},Dt(f[a],1,1,(()=>{f[a]=null})),Mt.r||mt(Mt.c),Mt=Mt.p),~n?(r=f[n],r?r.p(t,i):(r=f[n]=u[n](t),r.c()),Bt(r,1),r.m(e,o)):r=null),(!s||1&i)&&pt(c,t[0])},i(t){s||(Bt(r),s=!0)},o(t){Dt(r),s=!1},d(t){t&&it(e),~n&&f[n].d()}}}function Te(t){let e,n;return e=new Qt({props:{duration:t[2],afterClose:t[3],$$slots:{default:[Ne]},$$scope:{ctx:t}}}),{c(){Wt(e.$$.fragment)},m(t,r){Ft(e,t,r),n=!0},p(t,[n]){const r={};4&n&&(r.duration=t[2]),8&n&&(r.afterClose=t[3]),35&n&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Bt(e.$$.fragment,t),n=!0)},o(t){Dt(e.$$.fragment,t),n=!1},d(t){Ht(e,t)}}}function Ce(t,e,n){let{content:r}=e,{type:o}=e,{duration:i}=e,{onClose:c}=e;var a,l=A("toast");return xt((function(){ge.addListener(me.ToastHide,c)})),a=function(){ge.removeListener(me.ToastHide,c)},Ot().$$.on_destroy.push(a),t.$$set=t=>{"content"in t&&n(0,r=t.content),"type"in t&&n(1,o=t.type),"duration"in t&&n(2,i=t.duration),"onClose"in t&&n(3,c=t.onClose)},[r,o,i,c,l]}const Le=class extends Gt{constructor(t){super(),Ut(this,t,Ce,Te,gt,{content:0,type:1,duration:2,onClose:3})}};var Ie=function(t){return t.WEB_PAGE="WEB_PAGE",t.SCHEME="SCHEME",t.SCAN="SCAN",t.QR_PAY="QR_PAY",t.BIND_CARD="BIND_CARD",t.TOP_UP="TOP_UP",t}({}),Me=0;function Re(t){let e,n,r,o,i,c,a,l=t[2]&&Be(t);return{c(){e=ct("div"),n=ct("div"),r=ct("div"),c=st(),l&&l.c(),ft(r,"class",o=t[3]+"-icon svelte-6a1qhc"),ft(n,"class",i=t[3]+"-iconRoot svelte-6a1qhc"),ft(e,"class",a=bt(t[3])+" svelte-6a1qhc")},m(t,o){ot(t,e,o),rt(e,n),rt(n,r),rt(e,c),l&&l.m(e,null)},p(t,n){t[2]?l?l.p(t,n):(l=Be(t),l.c(),l.m(e,null)):l&&(l.d(1),l=null)},d(t){t&&it(e),l&&l.d()}}}function Be(t){let e,n,r;return{c(){e=ct("span"),n=lt(t[0]),ft(e,"class",r=t[3]+"-text svelte-6a1qhc")},m(t,r){ot(t,e,r),rt(e,n)},p(t,e){1&e&&pt(n,t[0])},d(t){t&&it(e)}}}function De(t){let e,n=t[1]&&Re(t);return{c(){n&&n.c(),e=lt("")},m(t,r){n&&n.m(t,r),ot(t,e,r)},p(t,r){t[1]?n?n.p(t,r):(n=Re(t),n.c(),n.m(e.parentNode,e)):n&&(n.d(1),n=null)},d(t){n&&n.d(t),t&&it(e)}}}function We(t){let e,n;return e=new Qt({props:{$$slots:{default:[De]},$$scope:{ctx:t}}}),{c(){Wt(e.$$.fragment)},m(t,r){Ft(e,t,r),n=!0},p(t,[n]){const r={};71&n&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Bt(e.$$.fragment,t),n=!0)},o(t){Dt(e.$$.fragment,t),n=!1},d(t){Ht(e,t)}}}function Fe(t,e,n){let r,{content:o}=e,{delay:i}=e,{onClose:c}=e;var a=!1,l=A("loading");return xt((function(){var t=ge.addListener(me.LoadingHide,(function(){c(),t()}))})),setTimeout((function(){n(1,a=++Me>0),a||console.log("my.hideLoading called before show")}),i||0),t.$$set=t=>{"content"in t&&n(0,o=t.content),"delay"in t&&n(4,i=t.delay),"onClose"in t&&n(5,c=t.onClose)},t.$$.update=()=>{1&t.$$.dirty&&n(2,r=s.isNotEmpty(o))},[o,a,r,l,i,c]}const He=class extends Gt{constructor(t){super(),Ut(this,t,Fe,We,gt,{content:0,delay:4,onClose:5})}};var Ue,Ke={};function Ge(t,e,n){n?window.my[t]=e:Ke[t]=e}function ze(t,e){return function(){console.warn("** [miniapp-web-jsapi] JSAPI ".concat(t," unsupported: ").concat(e))}}function Ye(){var t,e;return Ue||(44,20,375,t=Math.ceil(375/window.screen.width*window.screen.height),e=W(),Ue={platform:/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)?"iOS":/(Android)/i.test(navigator.userAgent)?"Android":"Unknown",pixelRatio:window.devicePixelRatio,windowWidth:375,windowHeight:t-44-20,titleBarHeight:44,statusBarHeight:20,screenWidth:375,screenHeight:t,currentBattery:"100%",brand:"Unknown",model:"Unknown",system:"Unknown",version:qe(e),storage:"",app:e||"",fontSizeSetting:16,language:navigator.language}),Ue}function qe(t){if(t===M.kakaopay){var e=navigator.userAgent.match(/.+\sKT\/([0-9|.]+).*/);if(e&&e.length>=2)return e[1]}return""}function Ve(){return F()||""}var Je=function(){function t(){i(this,t)}return a(t,null,[{key:"getKey",value:function(){return Ve()||"global"}},{key:"storageValue",get:function(){return this._storageValue||(this._storageValue=function(){var e=localStorage.getItem(t.getKey());if(e)try{return JSON.parse(e)}catch(t){}}()),this._storageValue||{}}},{key:"setStorage",value:function(e,n){this.storageValue[e]=n,localStorage.setItem(t.getKey(),JSON.stringify(this.storageValue))}},{key:"getStorage",value:function(t){return this.storageValue[t]}},{key:"removeStorage",value:function(e){this.storageValue[e]=void 0,localStorage.setItem(t.getKey(),JSON.stringify(this.storageValue))}},{key:"clearStorage",value:function(){this._storageValue=void 0,localStorage.setItem(t.getKey(),"{}")}}]),t}();function Qe(t){var e=t.key;return{success:!0,key:e,data:Je.getStorage(e)}}function Xe(t){Je.setStorage(t.key,t.data)}function Ze(t){Je.removeStorage(t.key)}function tn(){Je.clearStorage()}t(Je,"_storageValue",void 0);var en={startApp:function(t){var e=t.success,n=(t.fail,t.complete),r=t.scheme;window.location.href=r,null==e||e({}),null==n||n({})},exitApp:function(){window.close()},alert:function(t){var e=t||{},n=e.title,r=e.content,o=e.buttonText,i=e.success,c=e.complete,a=document.createElement("div");document.body.appendChild(a);var l=new ne({target:a,props:{title:n,content:r,buttonText:o,onClose:function(){var t;null==i||i(),null==c||c(),l.$destroy(),null===(t=a.parentNode)||void 0===t||t.removeChild(a)}}})},confirm:function(t){var e=t.title,n=t.content,r=t.confirmButtonText,o=t.cancelButtonText,i=t.success,c=t.complete,a=document.createElement("div");document.body.appendChild(a);var l=new le({target:a,props:{title:e,content:n,confirmButtonText:r,cancelButtonText:o,onClose:function(t){var e,n={ok:t,confirm:t};null==i||i(n),null==c||c(n),l.$destroy(),null===(e=a.parentNode)||void 0===e||e.removeChild(a)}}})},getLocation:function(t){var e=function(e){se((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,c,a,l={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===(c=t.success)||void 0===c||c.call(t,l),null===(a=t.complete)||void 0===a||a.call(t,l)}),(function(t){var n=1===t.code?11:13;e(n)}),{timeout:1e4,maximumAge:t.cacheTimeout||3e4}):e(13)},makePhoneCall: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))},getServerTime:function(t){var e=t.success,n=t.fail,r=t.complete;my.call("rpc",{operationType:"ac.mobilepayment.basic.time.tick",requestData:[{}],success:function(t){t&&t.success&&null!=t.timestamp&&t.timestamp>0?null==e||e({time:t.timestamp}):null==n||n(),null==r||r()},fail:function(t){null==n||n(),null==r||r()}})},getNetworkType: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)},pageScrollTo: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,c;null===(i=t.fail)||void 0===i||i.call(t),null===(c=t.complete)||void 0===c||c.call(t)}},createSelectorQuery:function(t){var e,n=[],r=!1,o=function(t){r?n.push(new he):n.push(new t(e)),r=!1,e=null},i={boundingClientRect:function(){return o(pe),c},scrollOffset:function(){return o(de),c}},c={select:function(t){return e=document.querySelector(t),i},selectAll:function(t){var n=document.querySelectorAll(t);if(n){var r=[];null==n||n.forEach((function(t){return r.push(t)})),e=r}else e=null;return i},selectViewport:function(){return r=!0,i},exec:function(t){t(n.map((function(t){return t.execute()})))}};return c},navigateToBizScene:function(t){var e=t.sceneCode,n=t.param,r=t.success,o=t.fail,i=function(){null==r||r()},c=function(t){null==o||o(t)};switch(e){case Ie.WEB_PAGE:var a=n;s.isNotEmpty(a.url)?(window.open(a.url),i()):c({errorCode:"PARAM_ILLEGAL",errorMessage:"url is empty"});break;case Ie.SCHEME:var l=n;s.isNotEmpty(l.scheme)?(window.open(l.scheme),i()):c({errorCode:"PARAM_ILLEGAL",errorMessage:"scheme is empty"});break;default:return void c({errorCode:"UNKNOWN",errorMessage:"not implemented for this sceneCode"})}},navigateToMiniProgram:function(t){var e=t.success,n=(t.fail,t.complete);window.location.href=L(t),null==e||e({}),null==n||n({})},navigateTo:function(t){var e=t.success,n=(t.fail,t.complete);window.location.href=t.url,null==e||e(),null==n||n()},redirectTo:function(t){var e=t.success,n=(t.fail,t.complete);window.location.replace(t.url),null==e||e(),null==n||n()},request:function(t){return X.apply(this,arguments)},call:function(t,e){var n,r,o=Ke[t];return o?o.call(void 0,e):(o=window.my?window.my[t]:void 0,s.isFunction(o)?o.call(void 0,e):(console.error("** JSAPI ".concat(t," not exists!")),null==e||null===(n=e.fail)||void 0===n||n.call(e,new Error("".concat(t," is not exists"))),void(null==e||null===(r=e.complete)||void 0===r||r.call(e,{}))))},rpc:function(t){var e,n,r=null===(e=P())||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,z(t)}})}}r&&r.onBeforeSendRpc&&r.onBeforeSendRpc(t)||z(t)},setClipboard: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,c,a=document.createElement("input");document.body.appendChild(a),a.setAttribute("readonly","readonly"),a.setAttribute("value",t.text),a.setSelectionRange(0,t.text.length),a.focus(),a.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===(c=t.complete)||void 0===c||c.call(t,{success:!1})),document.body.removeChild(a)},getClipboard:function(t){var e;null===(e=t.fail)||void 0===e||e.call(t)},showToast:function(t){var e=t||{},n=e.content,r=e.type,o=e.duration,i=void 0===o?2e3:o,c=e.success,a=e.complete;if(n){var l=document.createElement("div");document.body.appendChild(l);var s=new Le({target:l,props:{content:n,type:r,duration:i,onClose:function(){var t;null==c||c(),null==a||a(),s.$destroy(),null===(t=l.parentNode)||void 0===t||t.removeChild(l)}}})}},hideToast:function(t){ge.notifyEvent(me.ToastHide)},showLoading:function(t){if(t){var e=s.isString(t)?{content:t}:t,n=e.content,r=e.delay,o=e.success,i=e.complete,c=document.createElement("div");document.body.appendChild(c);var a=new He({target:c,props:{content:n,delay:r,onClose:function(){null==o||o(),null==i||i(),a.$destroy(),document.body.removeChild(c)}}})}},hideLoading:function(t){Me=0,ge.notifyEvent(me.LoadingHide)},getSystemInfo:function(t){se((function(){try{var e;null===(e=t.success)||void 0===e||e.call(t,Ye())}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)}}))},getSystemInfoSync:function(){return Ye()},clearStorage:function(t){se((function(){try{var e;tn(),null==t||null===(e=t.success)||void 0===e||e.call(t)}catch(e){var n;null==t||null===(n=t.fail)||void 0===n||n.call(t)}finally{var r;null==t||null===(r=t.complete)||void 0===r||r.call(t)}}))},clearStorageSync:tn,getStorage:function(t){se((function(){try{var e,n=Qe({key:t.key});null===(e=t.success)||void 0===e||e.call(t,n)}catch(e){var r;null===(r=t.fail)||void 0===r||r.call(t)}finally{var o;null===(o=t.complete)||void 0===o||o.call(t)}}))},getStorageSync:Qe,removeStorage:function(t){se((function(){try{var e;Ze({key:t.key}),null===(e=t.success)||void 0===e||e.call(t)}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)}}))},removeStorageSync:Ze,setStorage:function(t){se((function(){try{var e;Xe({key:t.key,data:t.data}),null===(e=t.success)||void 0===e||e.call(t)}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)}}))},setStorageSync:Xe,getSiteInfo:function(t){var e=t.success,n=t.fail,r=t.complete;se((function(){var t=D();t&&t.length?null==e||e({siteName:t}):null==n||n(new Error("siteName is empty!")),null==r||r()}))},getAppIdSync:Ve,getLaunchOptionsSync:function(){return k()},setNavigationBar: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)},stopPullDownRefresh:ze("stopPullDownRefresh")};function nn(t){var e;return Object.keys(en).indexOf(t)>=0||null!=(null===(e=window.my)||void 0===e?void 0:e[t])||null!=Ke[t]}!function(){if(window){if(window.my){var t=window.my;l(en).forEach((function(e){var n=e[0];t[n]||(t[n]=e[1])}))}else window.my=en;window.my.canIUse=nn}}()})(),module.exports["miniapp-web-jsapi"]=r})(); | ||
(()=>{var t={564:(t,e,n)=>{"use strict";var r=n(357).isUnitlessNumber,o=n(521),i=Array.isArray,c=Object.keys,a=/^(normal|none|(\b(url\([^)]*\)|chapter_counter|attr\([^)]*\)|(no-)?(open|close)-quote|inherit)((\b\s*)|$|\s+))+)$/;function l(t,e){return r[t]||"number"!=typeof e?"content"!==t||a.test(e)||(e="'"+e.replace(/'/g,"\\'")+"'"):e+="px",o(t)+": "+e+"; "}t.exports=function(t){var e="";if(!t||0===c(t).length)return e;for(var n=c(t),r=0,o=n.length;r<o;r++){var a=n[r],s=t[a];if(i(s))for(var u=0,f=s.length;u<f;u++)e+=l(a,s[u]);else e+=l(a,s)}return e}},357: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},521: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-")}},61:(t,e,n)=>{var r=n(698).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,c="function"==typeof Symbol?Symbol:{},a=c.iterator||"@@iterator",l=c.asyncIterator||"@@asyncIterator",s=c.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=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),c=new A(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 c=n.delegate;if(c){var a=x(c,n);if(a){if(a===d)continue;return a}}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 l=p(t,e,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===d)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}(t,n,c),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={};u(y,a,(function(){return this}));var g=Object.getPrototypeOf,$=g&&g(g(_([])));$&&$!==n&&i.call($,a)&&(y=$);var b=m.prototype=h.prototype=Object.create(y);function w(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function n(o,c,a,l){var s=p(t[o],t,c);if("throw"!==s.type){var u=s.arg,f=u.value;return f&&"object"==r(f)&&i.call(f,"__await")?e.resolve(f.__await).then((function(t){n("next",t,a,l)}),(function(t){n("throw",t,a,l)})):e.resolve(f).then((function(t){u.value=t,a(u)}),(function(t){return n("throw",t,a,l)}))}l(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 x(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,x(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 E(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 S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function _(t){if(t){var e=t[a];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,u(b,"constructor",m),u(m,"constructor",v),v.displayName=u(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,u(t,s,"GeneratorFunction")),t.prototype=Object.create(b),t},e.awrap=function(t){return{__await:t}},w(O.prototype),u(O.prototype,l,(function(){return this})),e.AsyncIterator=O,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var c=new O(f(t,n,r,o),i);return e.isGeneratorFunction(n)?c:c.next().then((function(t){return t.done?t.value:c.next()}))},w(b),u(b,s,"Generator"),u(b,a,(function(){return this})),u(b,"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=_,A.prototype={constructor:A,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(S),!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 c.type="throw",c.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],c=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var a=i.call(o,"catchLoc"),l=i.call(o,"finallyLoc");if(a&&l){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(a){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!l)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 c=o?o.completion:{};return c.type=t,c.arg=e,o?(this.method="next",this.next=o.finallyLoc,d):this.complete(c)},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),S(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;S(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:_(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},698: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},687:(t,e,n)=>{var r=n(61)();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),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};(()=>{"use strict";function t(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n.r(r),n.d(r,{AppNameEnums:()=>M,EnvironmentEnums:()=>T,SiteNameEnums:()=>I,buildNavigateUrl:()=>L,createUnsupportedJsApi:()=>ze,getEnvironment:()=>C,getWebPolyfillOptions:()=>P,getWebQueryParams:()=>k,initWebPolyfill:()=>_,registerJsApiExtension:()=>Ge});const e=require("axios");var o=n.n(e);function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(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 a(t,e,n){return e&&c(t.prototype,e),n&&c(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function l(t){var e=[];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.push([n,t[n]]);return e}var s=function(){function t(){i(this,t)}return a(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 l(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 u(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 f(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?u(Object(r),!0).forEach((function(n){t(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var p={success:!1,errorCode:"AE15015999000001",errorMessage:"System error, please try again later"};function d(t){return t?decodeURIComponent(t):t}function h(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function v(t,e){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},v(t,e)}function m(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&&v(t,e)}function y(t){return y="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},y(t)}function g(t,e){if(e&&("object"===y(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return h(t)}function $(t){return $=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},$(t)}function b(t,e,n){return b=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&&v(o,n.prototype),o},b.apply(null,arguments)}function w(t){var e="function"==typeof Map?new Map:void 0;return w=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 b(t,arguments,$(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),v(r,t)},w(t)}var O=function(e){m(c,e);var n,r,o=(n=c,r=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}}(),function(){var t,e=$(n);if(r){var o=$(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return g(this,t)});function c(e){var n;return i(this,c),t(h(n=o.call(this,e)),"resultStatus",void 0),t(h(n),"memo",void 0),t(h(n),"tips",void 0),t(h(n),"extraMessage",void 0),t(h(n),"traceId",void 0),n}return a(c)}(w(Error));function x(t){var e,n=t.appId,r=t.path,o=t.extraData,i=t.parameters,c=window.location,a=D(),l=W();e=K(c.host)?"".concat(c.origin,"?site=").concat(a,"&app=").concat(l):"".concat(c.origin,"/page/aplus-miniapps/").concat(t.appId,"/index.html?site=").concat(a,"&app=").concat(l);var u=s.encodeMap(i);null!=u&&u.length&&(e+="&".concat(u));var f=s.encodeMap(o);null!=f&&f.length&&(e+="&query=".concat(encodeURIComponent(f)));var p,d=F();n!==d&&(p={appId:d||""});var h=s.encodeMap(p);return null!=h&&h.length&&(e+="&referrerInfo=".concat(encodeURIComponent(h))),r&&(e+="#".concat(r)),e}var E,S,A=function(t){return"".concat("alipay-mwj","-").concat(t)};function _(t){E=t}function P(){return E}function k(){return S||(S=function(){var t={};l(H(window.location.search)).forEach((function(e){var n=e[0],r=e[1],o=n.toLowerCase();if("query"===o)try{t.query=H(r)}catch(t){console.warn("parse query error: ",t)}else"referrerinfo"===o?t.referrerInfo=H(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=H(e)}return t}()),S}var N,j,T=function(t){return t.STABLE="STABLE",t.TEST="TEST",t.PRE="PRE",t.PROD="PROD",t}({});function C(){var t;return N||(t=window.location.host,N=K(t)?T.STABLE:t.endsWith(".test.alipay.net")||"oss-local-test.marmot-cloud.com"===t?T.TEST:t.endsWith(".alipay.net")||"oss-local-dev.marmot-cloud.com"===t?T.STABLE:t.endsWith(".pre.ac.alipay.com")?T.PRE:T.PROD),N}function L(t){var e,n=P();return((null==n||null===(e=n.navigateOptions)||void 0===e?void 0:e.buildNavigateToAppUrl)||x)(t)}var I=function(t){return 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",t}({}),M=function(t){return t.alipayhk="alipayhk",t.alipaymo="alipaymo",t.gcash="gcash",t.tngd="tngd",t.dana="dana",t.kakaopay="kakaopay",t}({}),R=(t(j={},I.ALIPAY_HK,M.alipayhk),t(j,I.ALIPAY_MO,M.alipaymo),t(j,I.GCASH,M.gcash),t(j,I.DANA,M.dana),t(j,I.TNG,M.tngd),t(j,I.KAKAOPAY,M.kakaopay),j);function B(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 D(){var t,e=null===(t=P())||void 0===t?void 0:t.siteName;return s.isNotEmpty(e)?e:(e=k().site,s.isNotEmpty(e)?e:void console.error("no siteName! please specify siteName in initWebPolyfill(...)"))}function W(){var t,e=null===(t=P())||void 0===t?void 0:t.appName;if(s.isNotEmpty(e))return e;if(e=k().app,s.isNotEmpty(e))return e;var n=D();if(e=R[n||""],s.isNotEmpty(e))return e;console.error("no appName! please specify appName in initWebPolyfill(...)")}function F(){var t,e,n=null===(t=P())||void 0===t?void 0:t.appId;if(s.isNotEmpty(n))return n;var r=null===(e=window.location.pathname)||void 0===e?void 0:e.match(/^\/page\/aplus-miniapps\/(\d{8,}).*/);if(2===(null==r?void 0:r.length))return r[1];console.error("no AppId! please specify AppId in initWebPolyfill(...)")}function H(t){var e,n={};if(s.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}function K(t){return"localhost"===t||/^localhost:[0-9]+$/.test(t)||/^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+:[0-9]+$/.test(t)}function U(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 G(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?U(Object(r),!0).forEach((function(n){t(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):U(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function z(e){var n=e.success,r=e.fail,i=e.complete,c=e.operationType,a=e.requestData,l=e.gateway,u=e.headers,h=function(){var e,n,r,o=function(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?B(Object(r),!0).forEach((function(n){t(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):B(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},null===(e=P())||void 0===e?void 0:e.rpcOptions);return o.gatewayUrl||(o.gatewayUrl=(n=C())===T.STABLE?"http://imgs-2.sggz00b.stable.alipay.net/imgw.htm":n===T.TEST?"http://imgs-ztt-0.sggz00a.test.alipay.net/mgw.htm":n===T.PRE?"https://imgs-sea-pre.alipay.com/imgw.htm":"https://imgs-ac.alipay.com/imgw.htm"),o.workspaceId||(o.gatewayUrl.indexOf("pre")>0?o.workspaceId="pre":o.workspaceId="default"),o.appId||(o.appId=(r=W())===M.alipayhk?"BE9C457241710":r===M.alipaymo?"ALIPAY_WALLET_MO":r===M.gcash?"GCASH_WALLET_PH":r===M.tngd?"TNGD_WALLET_MY":r===M.dana?"DANA_WALLET_ID":r===M.kakaopay?"KAKAOPAY_WALLET_KR":(console.error("Cannot find Rpc AppId for ".concat(r,"!")),"UNKNOWN_APP_ID")),o}(),v=G(G(G(G(G({},h.appId?{AppId:h.appId}:{}),h.workspaceId?{WorkspaceId:h.workspaceId}:{}),h.headers),u),{},t({"Operation-Type":c,"Content-Type":"application/json"},"X-CORS-".concat(h.appId,"-").concat(h.workspaceId),"1")),m=l||h.gatewayUrl,y=function(t){null==r||r(t),null==i||i()},g={method:"post",url:m,timeout:3e4,headers:v,data:a,withCredentials:!0};o()(g).then((function(t){var e=null;try{e=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 f(f({},p),{},{errorMessage:s.isNotEmpty(t)?t:p.errorMessage,memo:s.isString(e)?e:"".concat(e),traceId:n})}(d(t.headers.tips),d(t.headers.memo),n);var r=null;if(s.isString(e)){if(null==(r=s.parseObjectSafe(e)))return e}else r=e;return s.isEmpty(r.traceId)&&(r.traceId=n),r}(t);throw function(t,e){var n=d(t.headers.tips),r=d(t.headers.memo),o=new O("".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 y(t)}null==n||n(e),null==i||i()})).catch((function(t){y(t)}))}function Y(t,e,n,r,o,i,c){try{var a=t[i](c),l=a.value}catch(t){return void n(t)}a.done?e(l):Promise.resolve(l).then(r,o)}var q=n(687),V=n.n(q);function J(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 Q(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?J(Object(r),!0).forEach((function(n){t(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):J(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function X(){var t;return t=V().mark((function t(e){var n,r,i;return V().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e){t.next=2;break}return t.abrupt("return");case 2:n=function(t){if(200!==t)return 19},r=function(t){return"text"===t?"text/plain":"base64"!==t?"application/json":void 0},i={url:e.url,method:e.method,headers:Q(Q({},e.headers),{},{Accept:r(e.dataType)}),timeout:e.timeout,withCredentials:!0},"GET"===e.method?i.params=e.data:i.data=e.data,o().request(i).then((function(t){var r,o;null===(r=e.success)||void 0===r||r.call(e,{status:n(t.status),data:t.data,headers:t.headers}),null===(o=e.complete)||void 0===o||o.call(e,{})})).catch((function(t){var n,r;null===(n=e.fail)||void 0===n||n.call(e,t),null===(r=e.complete)||void 0===r||r.call(e,{})}));case 7:case"end":return t.stop()}}),t)})),X=function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function c(t){Y(i,r,o,c,a,"next",t)}function a(t){Y(i,r,o,c,a,"throw",t)}c(void 0)}))},X.apply(this,arguments)}new Set;const Z="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;class tt{_listeners="WeakMap"in Z?new WeakMap:void 0;_observer=void 0;options;constructor(t){this.options=t}observe(t,e){return this._listeners.set(t,e),this._getObserver().observe(t,this.options),()=>{this._listeners.delete(t),this._observer.unobserve(t)}}_getObserver(){return this._observer??(this._observer=new ResizeObserver((t=>{for(const e of t)tt.entries.set(e.target,e),this._listeners.get(e.target)?.(e)})))}}tt.entries="WeakMap"in Z?new WeakMap:void 0;let et,nt=!1;function rt(t,e){t.appendChild(e)}function ot(t,e,n){t.insertBefore(e,n||null)}function it(t){t.parentNode&&t.parentNode.removeChild(t)}function ct(t){return document.createElement(t)}function at(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function lt(t){return document.createTextNode(t)}function st(){return lt(" ")}function ut(t,e,n,r){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n,r)}function ft(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function pt(t,e){e=""+e,t.data!==e&&(t.data=e)}function dt(){}function ht(t){return t()}function vt(){return Object.create(null)}function mt(t){t.forEach(ht)}function yt(t){return"function"==typeof t}function gt(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function $t(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 bt(t){return null==t?"":t}function wt(t){et=t}function Ot(){if(!et)throw new Error("Function called outside component initialization");return et}function xt(t){Ot().$$.on_mount.push(t)}new Map;const Et=[],St=[];let At=[];const _t=[],Pt=Promise.resolve();let kt=!1;function Nt(t){At.push(t)}const jt=new Set;let Tt=0;function Ct(){if(0!==Tt)return;const t=et;do{try{for(;Tt<Et.length;){const t=Et[Tt];Tt++,wt(t),Lt(t.$$)}}catch(t){throw Et.length=0,Tt=0,t}for(wt(null),Et.length=0,Tt=0;St.length;)St.pop()();for(let t=0;t<At.length;t+=1){const e=At[t];jt.has(e)||(jt.add(e),e())}At.length=0}while(Et.length);for(;_t.length;)_t.pop()();kt=!1,jt.clear(),wt(t)}function Lt(t){if(null!==t.fragment){t.update(),mt(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(Nt)}}const It=new Set;let Mt,Rt;function Bt(t,e){t&&t.i&&(It.delete(t),t.i(e))}function Dt(t,e,n,r){if(t&&t.o){if(It.has(t))return;It.add(t),Mt.c.push((()=>{It.delete(t),r&&(n&&t.d(1),r())})),t.o(e)}else r&&r()}function Wt(t){t&&t.c()}function Ft(t,e,n){const{fragment:r,after_update:o}=t.$$;r&&r.m(e,n),Nt((()=>{const e=t.$$.on_mount.map(ht).filter(yt);t.$$.on_destroy?t.$$.on_destroy.push(...e):mt(e),t.$$.on_mount=[]})),o.forEach(Nt)}function Ht(t,e){const n=t.$$;null!==n.fragment&&(function(t){const e=[],n=[];At.forEach((r=>-1===t.indexOf(r)?e.push(r):n.push(r))),n.forEach((t=>t())),At=e}(n.after_update),mt(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function Kt(t,e,n,r,o,i,c=null,a=[-1]){const l=et;wt(t);const s=t.$$={fragment:null,ctx:[],props:i,update:dt,not_equal:o,bound:vt(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(l?l.$$.context:[])),callbacks:vt(),dirty:a,skip_bound:!1,root:e.target||l.$$.root};c&&c(s.root);let u=!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),u&&function(t,e){-1===t.$$.dirty[0]&&(Et.push(t),kt||(kt=!0,Pt.then(Ct)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}(t,e)),n})):[],s.update(),u=!0,mt(s.before_update),s.fragment=!!r&&r(s.ctx),e.target){if(e.hydrate){nt=!0;const t=(f=e.target,Array.from(f.childNodes));s.fragment&&s.fragment.l(t),t.forEach(it)}else s.fragment&&s.fragment.c();e.intro&&Bt(t.$$.fragment),Ft(t,e.target,e.anchor),nt=!1,Ct()}var f;wt(l)}function Ut(t,e,n,r){const o=n[t]?.type;if(e="Boolean"===o&&"boolean"!=typeof e?null!=e:e,!r||!n[t])return e;if("toAttribute"===r)switch(o){case"Object":case"Array":return null==e?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return null==e?null:e;default:return e}else switch(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":default:return e;case"Number":return null!=e?+e:e}}new Set(["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"]),"function"==typeof HTMLElement&&(Rt=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;constructor(t,e,n){super(),this.$$ctor=t,this.$$s=e,n&&this.attachShadow({mode:"open"})}addEventListener(t,e,n){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(e),this.$$c){const n=this.$$c.$on(t,e);this.$$l_u.set(e,n)}super.addEventListener(t,e,n)}removeEventListener(t,e,n){if(super.removeEventListener(t,e,n),this.$$c){const t=this.$$l_u.get(e);t&&(t(),this.$$l_u.delete(e))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){if(await Promise.resolve(),!this.$$cn||this.$$c)return;function t(t){return()=>{let e;return{c:function(){e=ct("slot"),"default"!==t&&ft(e,"name",t)},m:function(t,n){ot(t,e,n)},d:function(t){t&&it(e)}}}}const e={},n=function(t){const e={};return t.childNodes.forEach((t=>{e[t.slot||"default"]=!0})),e}(this);for(const o of this.$$s)o in n&&(e[o]=[t(o)]);for(const i of this.attributes){const c=this.$$g_p(i.name);c in this.$$d||(this.$$d[c]=Ut(c,i.value,this.$$p_d,"toProp"))}for(const a in this.$$p_d)a in this.$$d||void 0===this[a]||(this.$$d[a]=this[a],delete this[a]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:{...this.$$d,$$slots:e,$$scope:{ctx:[]}}});const r=()=>{this.$$r=!0;for(const t in this.$$p_d)if(this.$$d[t]=this.$$c.$$.ctx[this.$$c.$$.props[t]],this.$$p_d[t].reflect){const e=Ut(t,this.$$d[t],this.$$p_d,"toAttribute");null==e?this.removeAttribute(this.$$p_d[t].attribute||t):this.setAttribute(this.$$p_d[t].attribute||t,e)}this.$$r=!1};this.$$c.$$.after_update.push(r),r();for(const l in this.$$l)for(const s of this.$$l[l]){const u=this.$$c.$on(l,s);this.$$l_u.set(s,u)}this.$$l={}}}attributeChangedCallback(t,e,n){this.$$r||(t=this.$$g_p(t),this.$$d[t]=Ut(t,n,this.$$p_d,"toProp"),this.$$c?.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then((()=>{this.$$cn||(this.$$c.$destroy(),this.$$c=void 0)}))}$$g_p(t){return Object.keys(this.$$p_d).find((e=>this.$$p_d[e].attribute===t||!this.$$p_d[e].attribute&&e.toLowerCase()===t))||t}});class Gt{$$=void 0;$$set=void 0;$destroy(){Ht(this,1),this.$destroy=dt}$on(t,e){if(!yt(e))return dt;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){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}var zt=n(564),Yt=n.n(zt);function qt(t){let e,n,r;const o=t[7].default,i=function(t,e,n,r){if(t){const r=$t(t,e,n,null);return t[0](r)}}(o,t,t[6]);return{c(){e=ct("div"),i&&i.c(),ft(e,"class",n=bt(t[0]?`${t[2]} ${t[0]}`:t[2])+" svelte-1l3ztq7"),ft(e,"style",t[1])},m(t,n){ot(t,e,n),i&&i.m(e,null),r=!0},p(t,[c]){i&&i.p&&(!r||64&c)&&function(t,e,n,r,o,i){if(o){const c=$t(e,n,r,i);t.p(c,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=bt(t[0]?`${t[2]} ${t[0]}`:t[2])+" svelte-1l3ztq7"))&&ft(e,"class",n),(!r||2&c)&&ft(e,"style",t[1])},i(t){r||(Bt(i,t),r=!0)},o(t){Dt(i,t),r=!1},d(t){t&&it(e),i&&i.d(t)}}}function Vt(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 Jt(e,n,r){let o,{$$slots:i={},$$scope:c}=n;var a=A("modal");let{duration:l}=n,{afterClose:s=function(){}}=n,{className:u=""}=n,{style:f={}}=n;return setTimeout((function(){l&&l>0&&s()}),l&&l>0?l:0),e.$$set=t=>{"duration"in t&&r(3,l=t.duration),"afterClose"in t&&r(4,s=t.afterClose),"className"in t&&r(0,u=t.className),"style"in t&&r(5,f=t.style),"$$scope"in t&&r(6,c=t.$$scope)},e.$$.update=()=>{32&e.$$.dirty&&r(1,o=Yt()(function(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?Vt(Object(r),!0).forEach((function(n){t(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Vt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({zIndex:999999},f)))},[u,o,a,l,s,f,c,i]}const Qt=class extends Gt{constructor(t){super(),Kt(this,t,Jt,qt,gt,{duration:3,afterClose:4,className:0,style:5})}};function Xt(t){let e,n,r;return{c(){e=ct("span"),n=lt(t[1]),ft(e,"class",r=t[5]+"-text svelte-1pl0sex")},m(t,r){ot(t,e,r),rt(e,n)},p(t,e){2&e&&pt(n,t[1])},d(t){t&&it(e)}}}function Zt(t){let e,n,r,o,i,c,a,l,s,u,f,p,d,h,v,m,y,g=(t[0]||"")+"",$=(t[2]||"OK")+"",b=t[4]&&Xt(t);return{c(){e=ct("div"),n=ct("div"),r=ct("span"),o=lt(g),c=st(),b&&b.c(),a=st(),l=ct("div"),u=st(),f=ct("span"),p=lt($),ft(r,"class",i=t[5]+"-title svelte-1pl0sex"),ft(l,"class",s=t[5]+"-line svelte-1pl0sex"),ft(f,"class",d=t[5]+"-button svelte-1pl0sex"),ft(n,"class",h=t[5]+"-content svelte-1pl0sex"),ft(e,"class",v=bt(t[5])+" svelte-1pl0sex")},m(i,s){ot(i,e,s),rt(e,n),rt(n,r),rt(r,o),rt(n,c),b&&b.m(n,null),rt(n,a),rt(n,l),rt(n,u),rt(n,f),rt(f,p),m||(y=ut(f,"click",(function(){yt(t[3])&&t[3].apply(this,arguments)})),m=!0)},p(e,r){t=e,1&r&&g!==(g=(t[0]||"")+"")&&pt(o,g),t[4]?b?b.p(t,r):(b=Xt(t),b.c(),b.m(n,a)):b&&(b.d(1),b=null),4&r&&$!==($=(t[2]||"OK")+"")&&pt(p,$)},d(t){t&&it(e),b&&b.d(),m=!1,y()}}}function te(t){let e,n;return e=new Qt({props:{$$slots:{default:[Zt]},$$scope:{ctx:t}}}),{c(){Wt(e.$$.fragment)},m(t,r){Ft(e,t,r),n=!0},p(t,[n]){const r={};95&n&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Bt(e.$$.fragment,t),n=!0)},o(t){Dt(e.$$.fragment,t),n=!1},d(t){Ht(e,t)}}}function ee(t,e,n){let r,{title:o}=e,{content:i}=e,{buttonText:c}=e,{onClose:a}=e;var l=A("alert");return t.$$set=t=>{"title"in t&&n(0,o=t.title),"content"in t&&n(1,i=t.content),"buttonText"in t&&n(2,c=t.buttonText),"onClose"in t&&n(3,a=t.onClose)},t.$$.update=()=>{2&t.$$.dirty&&n(4,r=s.isNotEmpty(i))},[o,i,c,a,r,l]}const ne=class extends Gt{constructor(t){super(),Kt(this,t,ee,te,gt,{title:0,content:1,buttonText:2,onClose:3})}};function re(t){let e,n,r;return{c(){e=ct("span"),n=lt(t[0]),ft(e,"class",r=t[7]+"-title svelte-1rtcbed")},m(t,r){ot(t,e,r),rt(e,n)},p(t,e){1&e&&pt(n,t[0])},d(t){t&&it(e)}}}function oe(t){let e,n,r;return{c(){e=ct("span"),n=lt(t[1]),ft(e,"class",r=t[7]+"-text svelte-1rtcbed")},m(t,r){ot(t,e,r),rt(e,n)},p(t,e){2&e&&pt(n,t[1])},d(t){t&&it(e)}}}function ie(t){let e,n,r,o,i,c,a,l,s,u,f,p,d,h,v,m,y,g,$,b,w=(t[3]||"Cancel")+"",O=(t[2]||"OK")+"",x=t[5]&&re(t),E=t[6]&&oe(t);return{c(){e=ct("div"),n=ct("div"),x&&x.c(),r=st(),E&&E.c(),o=st(),i=ct("div"),a=st(),l=ct("div"),s=ct("span"),u=lt(w),p=st(),d=ct("span"),h=lt(O),ft(i,"class",c=t[7]+"-line svelte-1rtcbed"),ft(s,"class",f=t[7]+"-cancel svelte-1rtcbed"),ft(d,"class",v=t[7]+"-button svelte-1rtcbed"),ft(l,"class",m=t[7]+"-buttonContent svelte-1rtcbed"),ft(n,"class",y=t[7]+"-content svelte-1rtcbed"),ft(e,"class",g=bt(t[7])+" svelte-1rtcbed")},m(c,f){ot(c,e,f),rt(e,n),x&&x.m(n,null),rt(n,r),E&&E.m(n,null),rt(n,o),rt(n,i),rt(n,a),rt(n,l),rt(l,s),rt(s,u),rt(l,p),rt(l,d),rt(d,h),$||(b=[ut(s,"click",t[8]),ut(d,"click",t[9])],$=!0)},p(t,e){t[5]?x?x.p(t,e):(x=re(t),x.c(),x.m(n,r)):x&&(x.d(1),x=null),t[6]?E?E.p(t,e):(E=oe(t),E.c(),E.m(n,o)):E&&(E.d(1),E=null),8&e&&w!==(w=(t[3]||"Cancel")+"")&&pt(u,w),4&e&&O!==(O=(t[2]||"OK")+"")&&pt(h,O)},d(t){t&&it(e),x&&x.d(),E&&E.d(),$=!1,mt(b)}}}function ce(t){let e,n;return e=new Qt({props:{$$slots:{default:[ie]},$$scope:{ctx:t}}}),{c(){Wt(e.$$.fragment)},m(t,r){Ft(e,t,r),n=!0},p(t,[n]){const r={};1151&n&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Bt(e.$$.fragment,t),n=!0)},o(t){Dt(e.$$.fragment,t),n=!1},d(t){Ht(e,t)}}}function ae(t,e,n){let r,o,{title:i}=e,{content:c}=e,{confirmButtonText:a}=e,{cancelButtonText:l}=e,{onClose:u}=e;var f=A("confirm");return t.$$set=t=>{"title"in t&&n(0,i=t.title),"content"in t&&n(1,c=t.content),"confirmButtonText"in t&&n(2,a=t.confirmButtonText),"cancelButtonText"in t&&n(3,l=t.cancelButtonText),"onClose"in t&&n(4,u=t.onClose)},t.$$.update=()=>{2&t.$$.dirty&&n(6,r=s.isNotEmpty(c)),1&t.$$.dirty&&n(5,o=s.isNotEmpty(i))},[i,c,a,l,u,o,r,f,()=>u(!1),()=>u(!0)]}const le=class extends Gt{constructor(t){super(),Kt(this,t,ae,ce,gt,{title:0,content:1,confirmButtonText:2,cancelButtonText:3,onClose:4})}};function se(t){setTimeout(t,0)}function ue(t){var e=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}}();return function(){var n,r=$(t);if(e){var o=$(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return g(this,n)}}var fe=function(){function e(n){i(this,e),t(this,"elements",void 0),this.elements=n}return a(e,[{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]}}]),e}(),pe=function(t){m(n,t);var e=ue(n);function n(){return i(this,n),e.apply(this,arguments)}return a(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}(fe),de=function(t){m(n,t);var e=ue(n);function n(){return i(this,n),e.apply(this,arguments)}return a(n,[{key:"execute",value:function(){return this.map((function(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}))}}]),n}(fe),he=function(t){m(n,t);var e=ue(n);function n(){return i(this,n),e.apply(this,arguments)}return a(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}(fe),ve=function(t){return t.ToastHide="ToastHide",t.LoadingHide="LoadingHide",t}(ve||{});const me=ve;function ye(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}var ge=new(function(){function e(n){i(this,e),t(this,"managerName",void 0),t(this,"listenersMap",{}),this.managerName=n}return a(e,[{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 ye(t)}(n)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(n)||function(t,e){if(t){if("string"==typeof t)return ye(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)?ye(t,e):void 0}}(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)}))}}]),e}())("default");function $e(t){let e,n,r,o;return{c(){e=at("svg"),n=at("g"),r=at("path"),o=at("path"),ft(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"),ft(r,"fill","#FFF"),ft(o,"stroke","#FFF"),ft(o,"stroke-width","2"),ft(o,"d","M19 34.54l11.545 11.923L52.815 24"),ft(n,"fill","none"),ft(n,"fill-rule","evenodd"),ft(e,"class",t[0]),ft(e,"xmlns","http://www.w3.org/2000/svg"),ft(e,"viewBox","0 0 72 72")},m(t,i){ot(t,e,i),rt(e,n),rt(n,r),rt(n,o)},p(t,[n]){1&n&&ft(e,"class",t[0])},i:dt,o:dt,d(t){t&&it(e)}}}function be(t,e,n){let{className:r}=e;return t.$$set=t=>{"className"in t&&n(0,r=t.className)},[r]}const we=class extends Gt{constructor(t){super(),Kt(this,t,be,$e,gt,{className:0})}};function Oe(t){let e,n,r,o;return{c(){e=at("svg"),n=at("g"),r=at("path"),o=at("path"),ft(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"),ft(r,"fill","#FFF"),ft(o,"d","M22 22l28.304 28.304m-28.304 0L50.304 22"),ft(o,"stroke","#FFF"),ft(o,"stroke-width","2"),ft(n,"fill","none"),ft(n,"fill-rule","evenodd"),ft(e,"class",t[0]),ft(e,"xmlns","http://www.w3.org/2000/svg"),ft(e,"viewBox","0 0 72 72")},m(t,i){ot(t,e,i),rt(e,n),rt(n,r),rt(n,o)},p(t,[n]){1&n&&ft(e,"class",t[0])},i:dt,o:dt,d(t){t&&it(e)}}}function xe(t,e,n){let{className:r}=e;return t.$$set=t=>{"className"in t&&n(0,r=t.className)},[r]}const Ee=class extends Gt{constructor(t){super(),Kt(this,t,xe,Oe,gt,{className:0})}};function Se(t){let e,n,r,o,i;return{c(){e=at("svg"),n=at("g"),r=at("path"),o=at("path"),i=at("path"),ft(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"),ft(r,"fill","#FFF"),ft(o,"fill","#FFF"),ft(o,"d","M47 22h2v6h-2zm-24 0h2v6h-2z"),ft(i,"d","M21 51s4.6-7 15-7 15 7 15 7"),ft(i,"stroke","#FFF"),ft(i,"stroke-width","2"),ft(n,"fill","none"),ft(n,"fill-rule","evenodd"),ft(e,"class",t[0]),ft(e,"xmlns","http://www.w3.org/2000/svg"),ft(e,"viewBox","0 0 72 72")},m(t,c){ot(t,e,c),rt(e,n),rt(n,r),rt(n,o),rt(n,i)},p(t,[n]){1&n&&ft(e,"class",t[0])},i:dt,o:dt,d(t){t&&it(e)}}}function Ae(t,e,n){let{className:r}=e;return t.$$set=t=>{"className"in t&&n(0,r=t.className)},[r]}const _e=class extends Gt{constructor(t){super(),Kt(this,t,Ae,Se,gt,{className:0})}};function Pe(t){let e,n;return e=new _e({props:{className:t[4]+"-icon"}}),{c(){Wt(e.$$.fragment)},m(t,r){Ft(e,t,r),n=!0},p:dt,i(t){n||(Bt(e.$$.fragment,t),n=!0)},o(t){Dt(e.$$.fragment,t),n=!1},d(t){Ht(e,t)}}}function ke(t){let e,n;return e=new Ee({props:{className:t[4]+"-icon"}}),{c(){Wt(e.$$.fragment)},m(t,r){Ft(e,t,r),n=!0},p:dt,i(t){n||(Bt(e.$$.fragment,t),n=!0)},o(t){Dt(e.$$.fragment,t),n=!1},d(t){Ht(e,t)}}}function Ne(t){let e,n;return e=new we({props:{className:t[4]+"-icon"}}),{c(){Wt(e.$$.fragment)},m(t,r){Ft(e,t,r),n=!0},p:dt,i(t){n||(Bt(e.$$.fragment,t),n=!0)},o(t){Dt(e.$$.fragment,t),n=!1},d(t){Ht(e,t)}}}function je(t){let e,n,r,o,i,c,a,l,s;const u=[Ne,ke,Pe],f=[];function p(t,e){return"success"===t[1]?0:"fail"===t[1]?1:"exception"===t[1]?2:-1}return~(n=p(t))&&(r=f[n]=u[n](t)),{c(){e=ct("div"),r&&r.c(),o=st(),i=ct("span"),c=lt(t[0]),ft(i,"class",a=t[4]+"-text svelte-13dnj4p"),ft(e,"class",l=bt(t[4])+" svelte-13dnj4p")},m(t,r){ot(t,e,r),~n&&f[n].m(e,null),rt(e,o),rt(e,i),rt(i,c),s=!0},p(t,i){let a=n;n=p(t),n===a?~n&&f[n].p(t,i):(r&&(Mt={r:0,c:[],p:Mt},Dt(f[a],1,1,(()=>{f[a]=null})),Mt.r||mt(Mt.c),Mt=Mt.p),~n?(r=f[n],r?r.p(t,i):(r=f[n]=u[n](t),r.c()),Bt(r,1),r.m(e,o)):r=null),(!s||1&i)&&pt(c,t[0])},i(t){s||(Bt(r),s=!0)},o(t){Dt(r),s=!1},d(t){t&&it(e),~n&&f[n].d()}}}function Te(t){let e,n;return e=new Qt({props:{duration:t[2],afterClose:t[3],$$slots:{default:[je]},$$scope:{ctx:t}}}),{c(){Wt(e.$$.fragment)},m(t,r){Ft(e,t,r),n=!0},p(t,[n]){const r={};4&n&&(r.duration=t[2]),8&n&&(r.afterClose=t[3]),35&n&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Bt(e.$$.fragment,t),n=!0)},o(t){Dt(e.$$.fragment,t),n=!1},d(t){Ht(e,t)}}}function Ce(t,e,n){let{content:r}=e,{type:o}=e,{duration:i}=e,{onClose:c}=e;var a,l=A("toast");return xt((function(){ge.addListener(me.ToastHide,c)})),a=function(){ge.removeListener(me.ToastHide,c)},Ot().$$.on_destroy.push(a),t.$$set=t=>{"content"in t&&n(0,r=t.content),"type"in t&&n(1,o=t.type),"duration"in t&&n(2,i=t.duration),"onClose"in t&&n(3,c=t.onClose)},[r,o,i,c,l]}const Le=class extends Gt{constructor(t){super(),Kt(this,t,Ce,Te,gt,{content:0,type:1,duration:2,onClose:3})}};var Ie=function(t){return t.WEB_PAGE="WEB_PAGE",t.SCHEME="SCHEME",t.SCAN="SCAN",t.QR_PAY="QR_PAY",t.BIND_CARD="BIND_CARD",t.TOP_UP="TOP_UP",t}({}),Me=0;function Re(t){let e,n,r,o,i,c,a,l=t[2]&&Be(t);return{c(){e=ct("div"),n=ct("div"),r=ct("div"),c=st(),l&&l.c(),ft(r,"class",o=t[3]+"-icon svelte-6a1qhc"),ft(n,"class",i=t[3]+"-iconRoot svelte-6a1qhc"),ft(e,"class",a=bt(t[3])+" svelte-6a1qhc")},m(t,o){ot(t,e,o),rt(e,n),rt(n,r),rt(e,c),l&&l.m(e,null)},p(t,n){t[2]?l?l.p(t,n):(l=Be(t),l.c(),l.m(e,null)):l&&(l.d(1),l=null)},d(t){t&&it(e),l&&l.d()}}}function Be(t){let e,n,r;return{c(){e=ct("span"),n=lt(t[0]),ft(e,"class",r=t[3]+"-text svelte-6a1qhc")},m(t,r){ot(t,e,r),rt(e,n)},p(t,e){1&e&&pt(n,t[0])},d(t){t&&it(e)}}}function De(t){let e,n=t[1]&&Re(t);return{c(){n&&n.c(),e=lt("")},m(t,r){n&&n.m(t,r),ot(t,e,r)},p(t,r){t[1]?n?n.p(t,r):(n=Re(t),n.c(),n.m(e.parentNode,e)):n&&(n.d(1),n=null)},d(t){n&&n.d(t),t&&it(e)}}}function We(t){let e,n;return e=new Qt({props:{$$slots:{default:[De]},$$scope:{ctx:t}}}),{c(){Wt(e.$$.fragment)},m(t,r){Ft(e,t,r),n=!0},p(t,[n]){const r={};71&n&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Bt(e.$$.fragment,t),n=!0)},o(t){Dt(e.$$.fragment,t),n=!1},d(t){Ht(e,t)}}}function Fe(t,e,n){let r,{content:o}=e,{delay:i}=e,{onClose:c}=e;var a=!1,l=A("loading");return xt((function(){var t=ge.addListener(me.LoadingHide,(function(){c(),t()}))})),setTimeout((function(){n(1,a=++Me>0),a||console.log("my.hideLoading called before show")}),i||0),t.$$set=t=>{"content"in t&&n(0,o=t.content),"delay"in t&&n(4,i=t.delay),"onClose"in t&&n(5,c=t.onClose)},t.$$.update=()=>{1&t.$$.dirty&&n(2,r=s.isNotEmpty(o))},[o,a,r,l,i,c]}const He=class extends Gt{constructor(t){super(),Kt(this,t,Fe,We,gt,{content:0,delay:4,onClose:5})}};var Ke,Ue={};function Ge(t,e,n){n?window.my[t]=e:Ue[t]=e}function ze(t,e){return function(){console.warn("** [miniapp-web-jsapi] JSAPI ".concat(t," unsupported: ").concat(e))}}function Ye(){var t,e;return Ke||(44,20,375,t=Math.ceil(375/window.screen.width*window.screen.height),e=W(),Ke={platform:/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)?"iOS":/(Android)/i.test(navigator.userAgent)?"Android":"UNKNOWN",pixelRatio:window.devicePixelRatio,windowWidth:375,windowHeight:t-44-20,titleBarHeight:44,statusBarHeight:20,screenWidth:375,screenHeight:t,currentBattery:"100%",brand:"UNKNOWN",model:"UNKNOWN",system:"UNKNOWN",version:qe(e),storage:"",app:e||"",fontSizeSetting:16,language:navigator.language}),Ke}function qe(t){if(t===M.kakaopay){var e=navigator.userAgent.match(/.+\sKT\/([0-9|.]+).*/);if(e&&e.length>=2)return e[1]}return""}function Ve(){return F()||""}var Je=function(){function t(){i(this,t)}return a(t,null,[{key:"getKey",value:function(){return Ve()||"global"}},{key:"storageValue",get:function(){return this._storageValue||(this._storageValue=function(){var e=localStorage.getItem(t.getKey());if(e)try{return JSON.parse(e)}catch(t){}}()),this._storageValue||{}}},{key:"setStorage",value:function(e,n){this.storageValue[e]=n,localStorage.setItem(t.getKey(),JSON.stringify(this.storageValue))}},{key:"getStorage",value:function(t){return this.storageValue[t]}},{key:"removeStorage",value:function(e){this.storageValue[e]=void 0,localStorage.setItem(t.getKey(),JSON.stringify(this.storageValue))}},{key:"clearStorage",value:function(){this._storageValue=void 0,localStorage.setItem(t.getKey(),"{}")}}]),t}();function Qe(t){var e=t.key;return{success:!0,key:e,data:Je.getStorage(e)}}function Xe(t){Je.setStorage(t.key,t.data)}function Ze(t){Je.removeStorage(t.key)}function tn(){Je.clearStorage()}t(Je,"_storageValue",void 0);var en={startApp:function(t){var e=t.success,n=(t.fail,t.complete),r=t.scheme;window.location.href=r,null==e||e({}),null==n||n({})},exitApp:function(){window.close()},alert:function(t){var e=t||{},n=e.title,r=e.content,o=e.buttonText,i=e.success,c=e.complete,a=document.createElement("div");document.body.appendChild(a);var l=new ne({target:a,props:{title:n,content:r,buttonText:o,onClose:function(){var t;null==i||i(),null==c||c(),l.$destroy(),null===(t=a.parentNode)||void 0===t||t.removeChild(a)}}})},confirm:function(t){var e=t.title,n=t.content,r=t.confirmButtonText,o=t.cancelButtonText,i=t.success,c=t.complete,a=document.createElement("div");document.body.appendChild(a);var l=new le({target:a,props:{title:e,content:n,confirmButtonText:r,cancelButtonText:o,onClose:function(t){var e,n={ok:t,confirm:t};null==i||i(n),null==c||c(n),l.$destroy(),null===(e=a.parentNode)||void 0===e||e.removeChild(a)}}})},getLocation:function(t){var e=function(e){se((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,c,a,l={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===(c=t.success)||void 0===c||c.call(t,l),null===(a=t.complete)||void 0===a||a.call(t,l)}),(function(t){var n=1===t.code?11:13;e(n)}),{timeout:1e4,maximumAge:t.cacheTimeout||3e4}):e(13)},makePhoneCall: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))},getServerTime:function(t){var e=t.success,n=t.fail,r=t.complete;my.call("rpc",{operationType:"ac.mobilepayment.basic.time.tick",requestData:[{}],success:function(t){t&&t.success&&null!=t.timestamp&&t.timestamp>0?null==e||e({time:t.timestamp}):null==n||n(),null==r||r()},fail:function(t){null==n||n(),null==r||r()}})},getNetworkType: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)},pageScrollTo: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,c;null===(i=t.fail)||void 0===i||i.call(t),null===(c=t.complete)||void 0===c||c.call(t)}},createSelectorQuery:function(t){var e,n=[],r=!1,o=function(t){r?n.push(new he):n.push(new t(e)),r=!1,e=null},i={boundingClientRect:function(){return o(pe),c},scrollOffset:function(){return o(de),c}},c={select:function(t){return e=document.querySelector(t),i},selectAll:function(t){var n=document.querySelectorAll(t);if(n){var r=[];null==n||n.forEach((function(t){return r.push(t)})),e=r}else e=null;return i},selectViewport:function(){return r=!0,i},exec:function(t){t(n.map((function(t){return t.execute()})))}};return c},navigateToBizScene:function(t){var e=t.sceneCode,n=t.param,r=t.success,o=t.fail,i=function(){null==r||r()},c=function(t){null==o||o(t)};switch(e){case Ie.WEB_PAGE:var a=n;s.isNotEmpty(a.url)?(window.open(a.url),i()):c({errorCode:"PARAM_ILLEGAL",errorMessage:"url is empty"});break;case Ie.SCHEME:var l=n;s.isNotEmpty(l.scheme)?(window.open(l.scheme),i()):c({errorCode:"PARAM_ILLEGAL",errorMessage:"scheme is empty"});break;default:return void c({errorCode:"UNKNOWN",errorMessage:"not implemented for this sceneCode"})}},navigateToMiniProgram:function(t){var e=t.success,n=(t.fail,t.complete);window.location.href=L(t),null==e||e({}),null==n||n({})},navigateTo:function(t){var e=t.success,n=(t.fail,t.complete);window.location.href=t.url,null==e||e(),null==n||n()},redirectTo:function(t){var e=t.success,n=(t.fail,t.complete);window.location.replace(t.url),null==e||e(),null==n||n()},request:function(t){return X.apply(this,arguments)},call:function(t,e){var n,r,o=Ue[t];return o?o.call(void 0,e):(o=window.my?window.my[t]:void 0,s.isFunction(o)?o.call(void 0,e):(console.error("** JSAPI ".concat(t," not exists!")),null==e||null===(n=e.fail)||void 0===n||n.call(e,new Error("".concat(t," is not exists"))),void(null==e||null===(r=e.complete)||void 0===r||r.call(e,{}))))},rpc:function(t){var e,n,r=null===(e=P())||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,z(t)}})}}r&&r.onBeforeSendRpc&&r.onBeforeSendRpc(t)||z(t)},setClipboard: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,c,a=document.createElement("input");document.body.appendChild(a),a.setAttribute("readonly","readonly"),a.setAttribute("value",t.text),a.setSelectionRange(0,t.text.length),a.focus(),a.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===(c=t.complete)||void 0===c||c.call(t,{success:!1})),document.body.removeChild(a)},getClipboard:function(t){var e;null===(e=t.fail)||void 0===e||e.call(t)},showToast:function(t){var e=t||{},n=e.content,r=e.type,o=e.duration,i=void 0===o?2e3:o,c=e.success,a=e.complete;if(n){var l=document.createElement("div");document.body.appendChild(l);var s=new Le({target:l,props:{content:n,type:r,duration:i,onClose:function(){var t;null==c||c(),null==a||a(),s.$destroy(),null===(t=l.parentNode)||void 0===t||t.removeChild(l)}}})}},hideToast:function(t){ge.notifyEvent(me.ToastHide)},showLoading:function(t){if(t){var e=s.isString(t)?{content:t}:t,n=e.content,r=e.delay,o=e.success,i=e.complete,c=document.createElement("div");document.body.appendChild(c);var a=new He({target:c,props:{content:n,delay:r,onClose:function(){null==o||o(),null==i||i(),a.$destroy(),document.body.removeChild(c)}}})}},hideLoading:function(t){Me=0,ge.notifyEvent(me.LoadingHide)},getSystemInfo:function(t){se((function(){try{var e;null===(e=t.success)||void 0===e||e.call(t,Ye())}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)}}))},getSystemInfoSync:function(){return Ye()},clearStorage:function(t){se((function(){try{var e;tn(),null==t||null===(e=t.success)||void 0===e||e.call(t)}catch(e){var n;null==t||null===(n=t.fail)||void 0===n||n.call(t)}finally{var r;null==t||null===(r=t.complete)||void 0===r||r.call(t)}}))},clearStorageSync:tn,getStorage:function(t){se((function(){try{var e,n=Qe({key:t.key});null===(e=t.success)||void 0===e||e.call(t,n)}catch(e){var r;null===(r=t.fail)||void 0===r||r.call(t)}finally{var o;null===(o=t.complete)||void 0===o||o.call(t)}}))},getStorageSync:Qe,removeStorage:function(t){se((function(){try{var e;Ze({key:t.key}),null===(e=t.success)||void 0===e||e.call(t)}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)}}))},removeStorageSync:Ze,setStorage:function(t){se((function(){try{var e;Xe({key:t.key,data:t.data}),null===(e=t.success)||void 0===e||e.call(t)}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)}}))},setStorageSync:Xe,getSiteInfo:function(t){var e=t.success,n=t.fail,r=t.complete;se((function(){var t=D();t&&t.length?null==e||e({siteName:t}):null==n||n(new Error("siteName is empty!")),null==r||r()}))},getAppIdSync:Ve,getLaunchOptionsSync:function(){return k()},setNavigationBar: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)},stopPullDownRefresh:ze("stopPullDownRefresh")};function nn(t){var e;return Object.keys(en).indexOf(t)>=0||null!=(null===(e=window.my)||void 0===e?void 0:e[t])||null!=Ue[t]}!function(){if(window){if(window.my){var t=window.my;l(en).forEach((function(e){var n=e[0];t[n]||(t[n]=e[1])}))}else window.my=en;window.my.canIUse=nn}}()})(),module.exports["miniapp-web-jsapi"]=r})(); | ||
//# sourceMappingURL=index.js.map |
@@ -44,5 +44,5 @@ import { asyncRun } from "../../../common"; | ||
currentBattery: '100%', | ||
brand: 'Unknown', | ||
model: 'Unknown', | ||
system: 'Unknown', | ||
brand: 'UNKNOWN', | ||
model: 'UNKNOWN', | ||
system: 'UNKNOWN', | ||
version: getAppVersion(app), | ||
@@ -61,3 +61,3 @@ storage: '', | ||
} else { | ||
return 'Unknown'; | ||
return 'UNKNOWN'; | ||
} | ||
@@ -64,0 +64,0 @@ } |
{ | ||
"name": "miniapp-web-jsapi", | ||
"version": "2.12.0-alpha.37", | ||
"version": "2.12.0-alpha.38", | ||
"description": "JSAPI/View adapter for miniprogram running on the web", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
448742
110
3756