hylid-bridge 4.0.17 → 4.0.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/canIUse.json +1 -1
- package/lib/bridges.js +2 -1
- package/lib/clients/mp_web/mpay/getLocation.d.ts +1 -1
- package/lib/clients/mp_web/mpay/getLocation.js +1 -1
- package/lib/clients/mp_web/mpay/index.d.ts +9 -9
- package/lib/clients/mp_web/mpay/index.js +4 -4
- package/lib/common/apis/custom/mp_web/mpay/getLocation.d.ts +7 -0
- package/lib/common/apis/custom/mp_web/mpay/getLocation.js +32 -0
- package/lib/umd/index.js +1 -1
- package/lib/umd/mp_web_mpay.js +1 -1
- package/package.json +6 -6
package/lib/umd/mp_web_mpay.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! For license information please see mp_web_mpay.js.LICENSE.txt */
|
|
2
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.my=t():e.my=t()}(self,(()=>(()=>{var e={7061:(e,t,n)=>{var r=n(8698).default;function o(){"use strict";e.exports=o=function(){return t},e.exports.__esModule=!0,e.exports.default=e.exports;var t={},n=Object.prototype,a=n.hasOwnProperty,c="function"==typeof Symbol?Symbol:{},i=c.iterator||"@@iterator",u=c.asyncIterator||"@@asyncIterator",s=c.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function f(e,t,n,r){var o=t&&t.prototype instanceof h?t:h,a=Object.create(o.prototype),c=new E(r||[]);return a._invoke=function(e,t,n){var r="suspendedStart";return function(o,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw a;return{value:void 0,done:!0}}for(n.method=o,n.arg=a;;){var c=n.delegate;if(c){var i=O(c,n);if(i){if(i===p)continue;return i}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=y(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===p)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}(e,n,c),a}function y(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=f;var p={};function h(){}function d(){}function v(){}var g={};l(g,i,(function(){return this}));var m=Object.getPrototypeOf,b=m&&m(m(T([])));b&&b!==n&&a.call(b,i)&&(g=b);var S=v.prototype=h.prototype=Object.create(g);function w(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function A(e,t){function n(o,c,i,u){var s=y(e[o],e,c);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==r(f)&&a.call(f,"__await")?t.resolve(f.__await).then((function(e){n("next",e,i,u)}),(function(e){n("throw",e,i,u)})):t.resolve(f).then((function(e){l.value=e,i(l)}),(function(e){return n("throw",e,i,u)}))}u(s.arg)}var o;this._invoke=function(e,r){function a(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(a,a):a()}}function O(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method))return p;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var r=y(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,p;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,p):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}function C(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(C,this),this.reset(!0)}function T(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,r=function t(){for(;++n<e.length;)if(a.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return r.next=r}}return{next:B}}function B(){return{value:void 0,done:!0}}return d.prototype=v,l(S,"constructor",v),l(v,"constructor",d),d.displayName=l(v,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,l(e,s,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},w(A.prototype),l(A.prototype,u,(function(){return this})),t.AsyncIterator=A,t.async=function(e,n,r,o,a){void 0===a&&(a=Promise);var c=new A(f(e,n,r,o),a);return t.isGeneratorFunction(n)?c:c.next().then((function(e){return e.done?e.value:c.next()}))},w(S),l(S,s,"Generator"),l(S,i,(function(){return this})),l(S,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},t.values=T,E.prototype={constructor:E,reset:function(e){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(P),!e)for(var t in this)"t"===t.charAt(0)&&a.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(n,r){return c.type="throw",c.arg=e,t.next=n,r&&(t.method="next",t.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 i=a.call(o,"catchLoc"),u=a.call(o,"finallyLoc");if(i&&u){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(i){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var c=o?o.completion:{};return c.type=e,c.arg=t,o?(this.method="next",this.next=o.finallyLoc,p):this.complete(c)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),P(n),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;P(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:T(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),p}},t}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},8698:e=>{function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},4687:(e,t,n)=>{var r=n(7061)();e.exports=r;try{regeneratorRuntime=r}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var a=t[r]={exports:{}};return e[r](a,a.exports,n),a.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var r={};return(()=>{"use strict";n.d(r,{default:()=>W});var e=function(e){if(window.AlipayJSBridge)return e();document.addEventListener("AlipayJSBridgeReady",(function(){return e()}),!1)},t=!1,o=[];function a(e){return o.push(e),function(){o=o.filter((function(t){return t!==e}))}}function c(n){return t||(document.addEventListener("onToWebViewMessage",(function(e){var t=e.data.res;if(t&&"message"===t.type){var n=JSON.parse(t.data);o.forEach((function(e){return e(n)}))}})),t=!0),e((function(){window.AlipayJSBridge.call("postWebViewMessage",{type:"message",detail:n})}))}var i={NOTFOUND:{code:-1,message:function(e){return"".concat(e," is not found")}},NOTALLOWED:{code:-2,message:function(e){return"".concat(e," is not allowed")}},INVALID:{code:-3,message:function(e){return"".concat(e," is invalid")}},NOTBIND:{code:-4,message:function(e){return"".concat(e," exec fail, webviewBridge not bind context")}},PARAMS_ERROR:{code:-5,message:function(e){return"".concat(e," exec fail, params error")}},TIMEOUT:{code:-6,message:function(e){return"".concat(e," exec fail, timeout")}}},u=function(e,t){void 0===t&&(t="");var n=i[e];return{errorCode:n.code,errorMessage:(0,n.message)(t),errorSouce:"hylid"}},s=function(){return s=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},s.apply(this,arguments)},l={};function f(e,t,n){n=s({timeout:2e4},n);var r=e+"_"+Math.floor(1e6*Math.random());t&&(l[r]=t),c({source:"hylid",type:"apiCall",api:e,serialId:r,options:t,config:n,isSync:null==n?void 0:n.isSync});var o=t;(null==n?void 0:n.timeout)&&(null==o?void 0:o.fail)&&setTimeout((function(){l[r]&&(delete l[r],o.fail(u("TIMEOUT")))}),n.timeout)}a((function(e){var t,n=e,r=n.serialId;if(r&&l[r]){var o=l[r],a=n.result;if("callback"===(null===(t=n.config)||void 0===t?void 0:t.type)){var c=a||{},i=c._data_;return"success"===c._type_?o(i):o(void 0,i)}var u=o||{},s=u.success,f=u.fail,y=u.complete,p=a||{},h=p._data_,d=p._type_;d?("success"===d&&(null==s||s(h)),"fail"===d&&(null==f||f(h)),null==y||y(h)):((null==a?void 0:a.error)?null==f||f(a):null==s||s(a),null==y||y(a)),delete l[r]}})),f.onMessage=a,f.postMessage=c,f.broadcastGlobalData=function(e,t){c({source:"hylid",type:"broadcast",from:window.location.href,key:e,result:t})},f.onReceiveGlobalData=function(e,t){return a((function(n){var r=n;if("hylid"===r.source&&"broadcast"===r.type&&r.key===e){var o=r.result||{},a=o._data_;return"success"===o._type_?t(a,void 0,r.from):t(void 0,a,r.from)}}))},f.onPageEvent=function(e,t){return c({source:"hylid",type:"pageEvent",event:e}),a((function(n){var r=n;if("hylid"===r.source&&"pageEvent"===r.type&&r.event===e){var o=r.result||{},a=o._data_;return"success"===o._type_?t(a):t(void 0,a)}}))};var y=function(){var t={},n=!1;return function(r,o,a){return new Promise((function(c,i){var u,l=o||{},f=l.success,y=l.fail,p=a||{},h=p.timeout,d=void 0===h?2e4:h,v=p.isSync;d>0&&(u=setTimeout((function(){var e={error:-101,errorMessage:"[".concat(r,"]: Timeout")};i(e),null==y||y(e)}),d));var g={apiName:r,options:s(s({},o),{success:function(e){u&&clearTimeout(u),c(e),null==f||f(e)},fail:function(e){u&&clearTimeout(u),i(e),null==y||y(e)}}),isSync:v};e((function(){n||(document.addEventListener("onToWebViewMessage",(function(e){var n=e.data.res;"message"===n.type&&function(e){var n,r=e.serialId;if(r&&t[r]){var o=t[r],a=e.result;if("callback"===(null===(n=e.config)||void 0===n?void 0:n.type)){var c=a||{},i=c._data_;return"success"===c._type_?o(i):o(void 0,i)}var u=o||{},s=u.success,l=u.fail,f=u.complete,y=a||{},p=y._data_,h=y._type_;h?("success"===h&&(null==s||s(p)),"fail"===h&&(null==l||l(p)),null==f||f(p)):((null==a?void 0:a.error)?null==l||l(a):null==s||s(a),null==f||f(a)),delete t[r]}}(JSON.parse(n.data))})),n=!0),function(e){var n,r=e.apiName,o=e.options,a=e.isSync,c=window,i=Math.floor(1e6*Math.random()),u="".concat(r,"_").concat(i);o&&(t[u]=o);var s={type:"apiCall",api:r,serialId:u,options:o,isSync:a,source:"hylid"};null===(n=c.AlipayJSBridge)||void 0===n||n.call("postWebViewMessage",{type:"message",detail:s})}(g)}))}))}}();function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function h(e,t,n,r,o,a,c){try{var i=e[a](c),u=i.value}catch(e){return void n(e)}i.done?t(u):Promise.resolve(u).then(r,o)}var d=n(4687),v=n.n(d);function g(e,t){var n=e.filter((function(e){return e.match.every((function(e){return e.test(t)}))}));if(n.length){var r=n[0].name;if(n.length>1){var o=n.map((function(e){return e.name})).join(",");b("Multiple clients have been identified(".concat(o,"), and the first one(").concat(r,")is used by default."))}return r}}function m(e,t){return Object.keys(e).reduce((function(n,r){return n["is".concat(r)]=t===e[r],n}),{})}function b(e){console.info("[hylid-env]: ".concat(e))}var S={WEB:"web",MPWEB:"mpweb",MP:"mp"},w={DEMO:"demo",ALIPAY:"alipay",ALIPAYHK:"alipayhk",TNGD:"tngd",GCASH:"gcash",TRUEMONEY:"tmn",DANA:"dana",KAKAOPAY:"kakaopay",KAKAOTALK:"kakaotalk",NAVERPAY:"naverpay",MPAY:"mpay",TOSSPAY:"toss",HIPAY:"hipay",CHOPE:"chope",VODAPAY:"vodapay",CHANGIPAY:"changipay",OCBC:"ocbc",MANDIRI:"mandiri",NAYAPAY:"nayapay",TINABA:"tinaba",KASPI:"kaspi",H5:"h5",WECHAT:"wechat",TNGD_H5NG:"tngdh5ng",WORLDFIRST:"worldfirst"},A=/miniprogram/i,O=/^((?!miniprogram).)*$/i,C=/griver/i,P=/^((?!griver).)*$/i,E=[{name:w.DEMO,match:[/demo/]},{name:w.ALIPAYHK,match:[/alipayHK/]},{name:w.TNGD,match:[/tngd/]},{name:w.GCASH,match:[/gcash/]},{name:w.TRUEMONEY,match:[/tmn/]},{name:w.DANA,match:[/dana/]},{name:w.TOSSPAY,match:[/toss/]},{name:w.ALIPAY,match:[/alipay/]}],T=[{name:w.DEMO,match:[/alipayIDE/i]},{name:w.ALIPAYHK,match:[A,P,/AlipayClientHK/]},{name:w.TNGD,match:[A,/TNGKit|Touch 'n Go/]},{name:w.GCASH,match:[A,C,/GCash/]},{name:w.TRUEMONEY,match:[A,C,/TrueMoney/]},{name:w.ALIPAY,match:[A,P,/alipay/i]},{name:w.DEMO,match:[A,C]}];function B(){return g(T,window.navigator.userAgent)}var k=[{name:w.ALIPAYHK,match:[O,P,/AlipayClientHK/]},{name:w.TNGD,match:[O,C,/TNGKit|Touch 'n Go/]},{name:w.TNGD_H5NG,match:[O,/TNGKit|Touch 'n Go/,/IAPWebH5NG/]},{name:w.GCASH,match:[O,C,/GCash/]},{name:w.TRUEMONEY,match:[O,C,/TrueMoney/i]},{name:w.KAKAOPAY,match:[O,/PAYCLIENT|KAKAOTALK|KAKAOPAY/]},{name:w.KAKAOTALK,match:[O,/ALIPAYCONNECT_KAKAO_TALK/]},{name:w.NAVERPAY,match:[O,/NAVER/]},{name:w.MPAY,match:[O,/mpay|macaupay/i]},{name:w.TOSSPAY,match:[O,/Toss/i]},{name:w.ALIPAY,match:[O,P,/AlipayClient/]},{name:w.DEMO,match:[O,C,/GriverDemo/]},{name:w.WORLDFIRST,match:[O,P,/WorldFirst/]}];function L(){return g(k,window.navigator.userAgent)||w.H5}var _=function(){var e,t;if("undefined"!=typeof wx||"undefined"!=typeof my&&"string"==typeof my.SDKVersion)e="undefined"!=typeof wx?w.WECHAT:g(E,my.getSystemInfoSync().app),t=S.MP;else{var n=function(){var e,t=(null===(e=window.location.search)||void 0===e?void 0:e.match(/__app__=([^&]*)/))||[],n=t[1],r=(window.location.search.match(/__platform__=([^&]*)/)||[])[1];if((n||r)&&localStorage.setItem("__hy_env__",JSON.stringify({client:n,platform:r})),t[1]){var o=window.location.search.replace(new RegExp("".concat(t[0],"(&)*")),""),a=window.location.hash||"",c="".concat(window.location.pathname).concat(o).concat(a);history.replaceState(null,"",c)}var i=localStorage.getItem("__hy_env__");if(!i){var u=localStorage.getItem("_CB__app__");return u?{client:u}:{}}return i?JSON.parse(i):{}}();n.platform?(t=n.platform,e=n.client||("mpweb"===t?B():L())):(e=n.client||B())?t=S.MPWEB:(e=L(),t=S.WEB)}return t&&e||b("Cannot identify your client."),{client:e,platform:t}}(),D=_.client,I=_.platform;m(w,D),m(S,I);var x,M,N=((x={})[S.MP]=function(e,t,n){var r=(n||{}).type,o=void 0===r?"async":r;return"sync"===o||(null==n?void 0:n.isSync)?my[e](t):("async"===o&&(my[e]?my[e](t):my.call(e,t)),"callback"===o&&my[e](t),"attribute"===o?my[e]:void 0)},x[S.MPWEB]=f,x[S.WEB]=function(t,n,r){e((function(){var e=(r||{}).type,o=void 0===e?"async":e;"async"===o&&window.AlipayJSBridge.call(t,n,(function(e){var t=n||{},r=t.success,o=t.fail,a=t.complete;e.error||e.errorCode?null==o||o(e):null==r||r(e),null==a||a(e)})),"callback"===o&&window.AlipayJSBridge.call(t,n)}))},x);function j(e,t,n){return I?N[I](e,t,n):function(e,t,n){var r;void 0===n&&(n={});var o=n.type,a=void 0===o?"async":o,c=u("NOTFOUND",e);if("sync"===a)return c;"callback"===a&&(null==t||t(c)),"async"===a&&(null===(r=null==t?void 0:t.fail)||void 0===r||r.call(t,c))}(t,n)}(M={})[S.MPWEB]=y,M[S.WEB]=function(e,t,n){return new Promise((function(r,o){var a,c=t||{},i=(c.success,c.fail),u=(c.complete,(n||{}).timeout),s=void 0===u?2e4:u;s>0&&(a=setTimeout((function(){var t={error:-101,errorMessage:"[".concat(e,"]: Timeout")};o(t),null==i||i(t)}),s)),window.AlipayJSBridge.call(e,t,(function(e){var n=t||{},c=n.success,i=n.fail,u=n.complete;a&&clearTimeout(a),(null==e?void 0:e.error)?(o(e),null==i||i(e)):(r(e),null==c||c(e)),null==u||u(e)}))}))};var K,G=function(){return G=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},G.apply(this,arguments)},F=(K=function(e){return f("getSystemInfo",e,{type:"async"})},function(e){return new Promise((function(t,n){var r=G(G({},e),{success:function(n){var r;t(n),null===(r=null==e?void 0:e.success)||void 0===r||r.call(e,n)},fail:function(t){var r;n(t),null===(r=null==e?void 0:e.fail)||void 0===r||r.call(e,t)}});K(r)}))});const Y=function(){var e=function(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function c(e){h(a,r,o,c,i,"next",e)}function i(e){h(a,r,o,c,i,"throw",e)}c(void 0)}))}}(v().mark((function e(t){var n,r,o;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=t.success,r=t.fail,o=t.complete,Promise.all([new Promise((function(e){j("getMPayUtdid",{success:function(t){e((null==t?void 0:t.utdid)||"")},fail:function(){e("")}})})),F()]).then((function(e){var t,r,o=(r=2,function(e){if(Array.isArray(e))return e}(t=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],c=!0,i=!1;try{for(n=n.call(e);!(c=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);c=!0);}catch(e){i=!0,o=e}finally{try{c||null==n.return||n.return()}finally{if(i)throw o}}return a}}(t,r)||function(e,t){if(e){if("string"==typeof e)return p(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?p(e,t):void 0}}(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),a=o[0],c=o[1],i=c.brand,u=c.model,s=c.platform,l={apdid:a,brand:i,model:u,appVersion:c.version,osType:s,osVersion:c.system,terminalType:"miniapp"},f=JSON.stringify(l);null==n||n({appToken:f})})).catch((function(e){null==r||r(e)})).finally((function(){null==o||o()}));case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();function R(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function V(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function H(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const W={addPhoneContact:function(e){return f("addPhoneContact",e,{type:"async"})},alert:function(e){return f("alert",e,{type:"async"})},chooseImage:function(e){return f("chooseImage",e,{type:"async"})},choosePhoneContact:function(e){return f("choosePhoneContact",e,{type:"async"})},clearStorage:function(e){return f("clearStorage",e,{type:"async"})},closeBluetoothAdapter:function(e){return f("closeBluetoothAdapter",e,{type:"async"})},closeSocket:function(e){return f("closeSocket",e,{type:"async"})},confirm:function(e){return f("confirm",e,{type:"async"})},connectBLEDevice:function(e){return f("connectBLEDevice",e,{type:"async"})},connectSocket:function(e){return f("connectSocket",e,{type:"async"})},datePicker:function(e){return f("datePicker",e,{type:"async"})},disconnectBLEDevice:function(e){return f("disconnectBLEDevice",e,{type:"async"})},downloadFile:function(e){return f("downloadFile",e,{type:"async"})},getAuthCode:function(e){return f("getAuthCode",e,{type:"async"})},getBatteryInfo:function(e){return f("getBatteryInfo",e,{type:"async"})},getBLEDeviceCharacteristics:function(e){return f("getBLEDeviceCharacteristics",e,{type:"async"})},getBLEDeviceServices:function(e){return f("getBLEDeviceServices",e,{type:"async"})},getBluetoothAdapterState:function(e){return f("getBluetoothAdapterState",e,{type:"async"})},getBluetoothDevices:function(e){return f("getBluetoothDevices",e,{type:"async"})},getClipboard:function(e){return f("getClipboard",e,{type:"async"})},getConnectedBluetoothDevices:function(e){return f("getConnectedBluetoothDevices",e,{type:"async"})},getFileInfo:function(e){return f("getFileInfo",e,{type:"async"})},getImageInfo:function(e){return f("getImageInfo",e,{type:"async"})},getLocation:function(e){return f("getLocation",e,{type:"async"})},getNetworkType:function(e){return f("getNetworkType",e,{type:"async"})},getOpenUserInfo:function(e){return f("getOpenUserInfo",e,{type:"async"})},getSavedFileInfo:function(e){return f("getSavedFileInfo",e,{type:"async"})},getSavedFileList:function(e){return f("getSavedFileList",e,{type:"async"})},getScreenBrightness:function(e){return f("getScreenBrightness",e,{type:"async"})},getServerTime:function(e){return f("getServerTime",e,{type:"async"})},getSetting:function(e){return f("getSetting",e,{type:"async"})},getSiteInfo:function(e){return f("getSiteInfo",e,{type:"async"})},getStorage:function(e){return f("getStorage",e,{type:"async"})},getSystemInfo:function(e){return f("getSystemInfo",e,{type:"async"})},hideBackHome:function(e){return f("hideBackHome",e,{type:"async"})},hideKeyboard:function(e){return f("hideKeyboard",e,{type:"async"})},hideLoading:function(e){return f("hideLoading",e,{type:"async"})},hideNavigationBarLoading:function(e){return f("hideNavigationBarLoading",e,{type:"async"})},hideTabBar:function(e){return f("hideTabBar",e,{type:"async"})},hideToast:function(e){return f("hideToast",e,{type:"async"})},makePhoneCall:function(e){return f("makePhoneCall",e,{type:"async"})},multiLevelSelect:function(e){return f("multiLevelSelect",e,{type:"async"})},navigateBack:function(e){return f("navigateBack",e,{type:"async"})},navigateBackMiniProgram:function(e){return f("navigateBackMiniProgram",e,{type:"async"})},navigateTo:function(e){return f("navigateTo",e,{type:"async"})},navigateToBizScene:function(e){return f("navigateToBizScene",e,{type:"async"})},navigateToMiniProgram:function(e){return f("navigateToMiniProgram",e,{type:"async"})},notifyBLECharacteristicValueChange:function(e){return f("notifyBLECharacteristicValueChange",e,{type:"async"})},offAccelerometerChange:function(e){return f("offAccelerometerChange",e,{type:"callback"})},offBLECharacteristicValueChange:function(e){return f("offBLECharacteristicValueChange",e,{type:"callback"})},offBLEConnectionStateChanged:function(e){return f("offBLEConnectionStateChanged",e,{type:"callback"})},offBluetoothAdapterStateChange:function(e){return f("offBluetoothAdapterStateChange",e,{type:"callback"})},offBluetoothDeviceFound:function(e){return f("offBluetoothDeviceFound",e,{type:"callback"})},offCompassChange:function(e){return f("offCompassChange",e,{type:"callback"})},offMemoryWarning:function(e){return f("offMemoryWarning",e,{type:"callback"})},offSocketClose:function(e){return f("offSocketClose",e,{type:"callback"})},offSocketError:function(e){return f("offSocketError",e,{type:"callback"})},offSocketMessage:function(e){return f("offSocketMessage",e,{type:"callback"})},offSocketOpen:function(e){return f("offSocketOpen",e,{type:"callback"})},offUserCaptureScreen:function(e){return f("offUserCaptureScreen",e,{type:"callback"})},onAccelerometerChange:function(e){return f("onAccelerometerChange",e,{type:"callback"})},onBLECharacteristicValueChange:function(e){return f("onBLECharacteristicValueChange",e,{type:"callback"})},onBLEConnectionStateChanged:function(e){return f("onBLEConnectionStateChanged",e,{type:"callback"})},onBluetoothAdapterStateChange:function(e){return f("onBluetoothAdapterStateChange",e,{type:"callback"})},onBluetoothDeviceFound:function(e){return f("onBluetoothDeviceFound",e,{type:"callback"})},onCompassChange:function(e){return f("onCompassChange",e,{type:"callback"})},onMemoryWarning:function(e){return f("onMemoryWarning",e,{type:"callback"})},onSocketClose:function(e){return f("onSocketClose",e,{type:"callback"})},onSocketError:function(e){return f("onSocketError",e,{type:"callback"})},onSocketMessage:function(e){return f("onSocketMessage",e,{type:"callback"})},onSocketOpen:function(e){return f("onSocketOpen",e,{type:"callback"})},onUserCaptureScreen:function(e){return f("onUserCaptureScreen",e,{type:"callback"})},openBluetoothAdapter:function(e){return f("openBluetoothAdapter",e,{type:"async"})},openDocument:function(e){return f("openDocument",e,{type:"async"})},openSetting:function(e){return f("openSetting",e,{type:"async"})},pageScrollTo:function(e){return f("pageScrollTo",e,{type:"async"})},previewImage:function(e){return f("previewImage",e,{type:"async"})},prompt:function(e){return f("prompt",e,{type:"async"})},readBLECharacteristicValue:function(e){return f("readBLECharacteristicValue",e,{type:"async"})},redirectTo:function(e){return f("redirectTo",e,{type:"async"})},reLaunch:function(e){return f("reLaunch",e,{type:"async"})},removeSavedFile:function(e){return f("removeSavedFile",e,{type:"async"})},removeStorage:function(e){return f("removeStorage",e,{type:"async"})},request:function(e){return f("request",e,{type:"async"})},saveFile:function(e){return f("saveFile",e,{type:"async"})},saveImage:function(e){return f("saveImage",e,{type:"async"})},scan:function(e){return f("scan",e,{type:"async"})},sendSocketMessage:function(e){return f("sendSocketMessage",e,{type:"async"})},setBackgroundColor:function(e){return f("setBackgroundColor",e,{type:"async"})},setCanPullDown:function(e){return f("setCanPullDown",e,{type:"async"})},setClipboard:function(e){return f("setClipboard",e,{type:"async"})},setKeepScreenOn:function(e){return f("setKeepScreenOn",e,{type:"async"})},setNavigationBar:function(e){return f("setNavigationBar",e,{type:"async"})},setScreenBrightness:function(e){return f("setScreenBrightness",e,{type:"async"})},setStorage:function(e){return f("setStorage",e,{type:"async"})},setTabBarStyle:function(e){return f("setTabBarStyle",e,{type:"async"})},showActionSheet:function(e){return f("showActionSheet",e,{type:"async"})},showAuthGuide:function(e){return f("showAuthGuide",e,{type:"async"})},showLoading:function(e){return f("showLoading",e,{type:"async"})},showNavigationBarLoading:function(e){return f("showNavigationBarLoading",e,{type:"async"})},showToast:function(e){return f("showToast",e,{type:"async"})},signContract:function(e){return f("signContract",e,{type:"async"})},startBluetoothDevicesDiscovery:function(e){return f("startBluetoothDevicesDiscovery",e,{type:"async"})},startPullDownRefresh:function(e){return f("startPullDownRefresh",e,{type:"async"})},stopBluetoothDevicesDiscovery:function(e){return f("stopBluetoothDevicesDiscovery",e,{type:"async"})},stopPullDownRefresh:function(e){return f("stopPullDownRefresh",e,{type:"async"})},switchTab:function(e){return f("switchTab",e,{type:"async"})},tradePay:function(e){return f("tradePay",e,{type:"async"})},uploadFile:function(e){return f("uploadFile",e,{type:"async"})},vibrate:function(e){return f("vibrate",e,{type:"async"})},watchShake:function(e){return f("watchShake",e,{type:"async"})},writeBLECharacteristicValue:function(e){return f("writeBLECharacteristicValue",e,{type:"async"})},showSharePanel:function(e){return f("showSharePanel",e,{type:"async"})},setTransparentTitle:function(e){return f("setTransparentTitle",e,{type:"async"})},getRunScene:function(e){return f("getRunScene",e,{type:"async"})},chooseFileFromDisk:function(e){return f("chooseFileFromDisk",e,{type:"async"})},chooseVideo:function(e){return f("chooseVideo",e,{type:"async"})},compressImage:function(e){return f("compressImage",e,{type:"async"})},setTabBarItem:function(e){return f("setTabBarItem",e,{type:"async"})},showTabBar:function(e){return f("showTabBar",e,{type:"async"})},getAppToken:Y,getAppId:function(e){j("getMPayAppIdSync",e)},getCurrentPages:function(e){f("__hy_internal__",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?V(Object(n),!0).forEach((function(t){R(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):V(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({name:"getCurrentPages"},e))},getSDKVersion:function(e){f("SDKVersion",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?H(Object(n),!0).forEach((function(t){R(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):H(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e),{type:"attribute"})}}})(),r.default})()));
|
|
2
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.my=t():e.my=t()}(self,(()=>(()=>{var e={7061:(e,t,n)=>{var r=n(8698).default;function o(){"use strict";e.exports=o=function(){return t},e.exports.__esModule=!0,e.exports.default=e.exports;var t={},n=Object.prototype,a=n.hasOwnProperty,c="function"==typeof Symbol?Symbol:{},i=c.iterator||"@@iterator",u=c.asyncIterator||"@@asyncIterator",s=c.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function f(e,t,n,r){var o=t&&t.prototype instanceof h?t:h,a=Object.create(o.prototype),c=new C(r||[]);return a._invoke=function(e,t,n){var r="suspendedStart";return function(o,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw a;return{value:void 0,done:!0}}for(n.method=o,n.arg=a;;){var c=n.delegate;if(c){var i=A(c,n);if(i){if(i===p)continue;return i}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=y(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===p)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}(e,n,c),a}function y(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=f;var p={};function h(){}function d(){}function g(){}var v={};l(v,i,(function(){return this}));var m=Object.getPrototypeOf,b=m&&m(m(T([])));b&&b!==n&&a.call(b,i)&&(v=b);var w=g.prototype=h.prototype=Object.create(v);function S(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function O(e,t){function n(o,c,i,u){var s=y(e[o],e,c);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==r(f)&&a.call(f,"__await")?t.resolve(f.__await).then((function(e){n("next",e,i,u)}),(function(e){n("throw",e,i,u)})):t.resolve(f).then((function(e){l.value=e,i(l)}),(function(e){return n("throw",e,i,u)}))}u(s.arg)}var o;this._invoke=function(e,r){function a(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(a,a):a()}}function A(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,A(e,t),"throw"===t.method))return p;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var r=y(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,p;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,p):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}function P(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(P,this),this.reset(!0)}function T(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,r=function t(){for(;++n<e.length;)if(a.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return r.next=r}}return{next:k}}function k(){return{value:void 0,done:!0}}return d.prototype=g,l(w,"constructor",g),l(g,"constructor",d),d.displayName=l(g,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,g):(e.__proto__=g,l(e,s,"GeneratorFunction")),e.prototype=Object.create(w),e},t.awrap=function(e){return{__await:e}},S(O.prototype),l(O.prototype,u,(function(){return this})),t.AsyncIterator=O,t.async=function(e,n,r,o,a){void 0===a&&(a=Promise);var c=new O(f(e,n,r,o),a);return t.isGeneratorFunction(n)?c:c.next().then((function(e){return e.done?e.value:c.next()}))},S(w),l(w,s,"Generator"),l(w,i,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},t.values=T,C.prototype={constructor:C,reset:function(e){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(E),!e)for(var t in this)"t"===t.charAt(0)&&a.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(n,r){return c.type="throw",c.arg=e,t.next=n,r&&(t.method="next",t.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 i=a.call(o,"catchLoc"),u=a.call(o,"finallyLoc");if(i&&u){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(i){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var c=o?o.completion:{};return c.type=e,c.arg=t,o?(this.method="next",this.next=o.finallyLoc,p):this.complete(c)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;E(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:T(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),p}},t}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},8698:e=>{function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},4687:(e,t,n)=>{var r=n(7061)();e.exports=r;try{regeneratorRuntime=r}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var a=t[r]={exports:{}};return e[r](a,a.exports,n),a.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var r={};return(()=>{"use strict";n.d(r,{default:()=>$});var e=function(e){if(window.AlipayJSBridge)return e();document.addEventListener("AlipayJSBridgeReady",(function(){return e()}),!1)},t=!1,o=[];function a(e){return o.push(e),function(){o=o.filter((function(t){return t!==e}))}}function c(n){return t||(document.addEventListener("onToWebViewMessage",(function(e){var t=e.data.res;if(t&&"message"===t.type){var n=JSON.parse(t.data);o.forEach((function(e){return e(n)}))}})),t=!0),e((function(){window.AlipayJSBridge.call("postWebViewMessage",{type:"message",detail:n})}))}var i={NOTFOUND:{code:-1,message:function(e){return"".concat(e," is not found")}},NOTALLOWED:{code:-2,message:function(e){return"".concat(e," is not allowed")}},INVALID:{code:-3,message:function(e){return"".concat(e," is invalid")}},NOTBIND:{code:-4,message:function(e){return"".concat(e," exec fail, webviewBridge not bind context")}},PARAMS_ERROR:{code:-5,message:function(e){return"".concat(e," exec fail, params error")}},TIMEOUT:{code:-6,message:function(e){return"".concat(e," exec fail, timeout")}}},u=function(e,t){void 0===t&&(t="");var n=i[e];return{errorCode:n.code,errorMessage:(0,n.message)(t),errorSouce:"hylid"}},s=function(){return s=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},s.apply(this,arguments)},l={};function f(e,t,n){n=s({timeout:2e4},n);var r=e+"_"+Math.floor(1e6*Math.random());t&&(l[r]=t),c({source:"hylid",type:"apiCall",api:e,serialId:r,options:t,config:n,isSync:null==n?void 0:n.isSync});var o=t;(null==n?void 0:n.timeout)&&(null==o?void 0:o.fail)&&setTimeout((function(){l[r]&&(delete l[r],o.fail(u("TIMEOUT")))}),n.timeout)}a((function(e){var t,n=e,r=n.serialId;if(r&&l[r]){var o=l[r],a=n.result;if("callback"===(null===(t=n.config)||void 0===t?void 0:t.type)){var c=a||{},i=c._data_;return"success"===c._type_?o(i):o(void 0,i)}var u=o||{},s=u.success,f=u.fail,y=u.complete,p=a||{},h=p._data_,d=p._type_;d?("success"===d&&(null==s||s(h)),"fail"===d&&(null==f||f(h)),null==y||y(h)):((null==a?void 0:a.error)?null==f||f(a):null==s||s(a),null==y||y(a)),delete l[r]}})),f.onMessage=a,f.postMessage=c,f.broadcastGlobalData=function(e,t){c({source:"hylid",type:"broadcast",from:window.location.href,key:e,result:t})},f.onReceiveGlobalData=function(e,t){return a((function(n){var r=n;if("hylid"===r.source&&"broadcast"===r.type&&r.key===e){var o=r.result||{},a=o._data_;return"success"===o._type_?t(a,void 0,r.from):t(void 0,a,r.from)}}))},f.onPageEvent=function(e,t){return c({source:"hylid",type:"pageEvent",event:e}),a((function(n){var r=n;if("hylid"===r.source&&"pageEvent"===r.type&&r.event===e){var o=r.result||{},a=o._data_;return"success"===o._type_?t(a):t(void 0,a)}}))};var y=function(){var t={},n=!1;return function(r,o,a){return new Promise((function(c,i){var u,l=o||{},f=l.success,y=l.fail,p=a||{},h=p.timeout,d=void 0===h?2e4:h,g=p.isSync;d>0&&(u=setTimeout((function(){var e={error:-101,errorMessage:"[".concat(r,"]: Timeout")};i(e),null==y||y(e)}),d));var v={apiName:r,options:s(s({},o),{success:function(e){u&&clearTimeout(u),c(e),null==f||f(e)},fail:function(e){u&&clearTimeout(u),i(e),null==y||y(e)}}),isSync:g};e((function(){n||(document.addEventListener("onToWebViewMessage",(function(e){var n=e.data.res;"message"===n.type&&function(e){var n,r=e.serialId;if(r&&t[r]){var o=t[r],a=e.result;if("callback"===(null===(n=e.config)||void 0===n?void 0:n.type)){var c=a||{},i=c._data_;return"success"===c._type_?o(i):o(void 0,i)}var u=o||{},s=u.success,l=u.fail,f=u.complete,y=a||{},p=y._data_,h=y._type_;h?("success"===h&&(null==s||s(p)),"fail"===h&&(null==l||l(p)),null==f||f(p)):((null==a?void 0:a.error)?null==l||l(a):null==s||s(a),null==f||f(a)),delete t[r]}}(JSON.parse(n.data))})),n=!0),function(e){var n,r=e.apiName,o=e.options,a=e.isSync,c=window,i=Math.floor(1e6*Math.random()),u="".concat(r,"_").concat(i);o&&(t[u]=o);var s={type:"apiCall",api:r,serialId:u,options:o,isSync:a,source:"hylid"};null===(n=c.AlipayJSBridge)||void 0===n||n.call("postWebViewMessage",{type:"message",detail:s})}(v)}))}))}}();function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function h(e,t,n,r,o,a,c){try{var i=e[a](c),u=i.value}catch(e){return void n(e)}i.done?t(u):Promise.resolve(u).then(r,o)}var d=n(4687),g=n.n(d);function v(e,t){var n=e.filter((function(e){return e.match.every((function(e){return e.test(t)}))}));if(n.length){var r=n[0].name;if(n.length>1){var o=n.map((function(e){return e.name})).join(",");b("Multiple clients have been identified(".concat(o,"), and the first one(").concat(r,")is used by default."))}return r}}function m(e,t){return Object.keys(e).reduce((function(n,r){return n["is".concat(r)]=t===e[r],n}),{})}function b(e){console.info("[hylid-env]: ".concat(e))}var w={WEB:"web",MPWEB:"mpweb",MP:"mp"},S={DEMO:"demo",ALIPAY:"alipay",ALIPAYHK:"alipayhk",TNGD:"tngd",GCASH:"gcash",TRUEMONEY:"tmn",DANA:"dana",KAKAOPAY:"kakaopay",KAKAOTALK:"kakaotalk",NAVERPAY:"naverpay",MPAY:"mpay",TOSSPAY:"toss",HIPAY:"hipay",CHOPE:"chope",VODAPAY:"vodapay",CHANGIPAY:"changipay",OCBC:"ocbc",MANDIRI:"mandiri",NAYAPAY:"nayapay",TINABA:"tinaba",KASPI:"kaspi",H5:"h5",WECHAT:"wechat",TNGD_H5NG:"tngdh5ng",WORLDFIRST:"worldfirst"},O=/miniprogram/i,A=/^((?!miniprogram).)*$/i,P=/griver/i,E=/^((?!griver).)*$/i,C=[{name:S.DEMO,match:[/demo/]},{name:S.ALIPAYHK,match:[/alipayHK/]},{name:S.TNGD,match:[/tngd/]},{name:S.GCASH,match:[/gcash/]},{name:S.TRUEMONEY,match:[/tmn/]},{name:S.DANA,match:[/dana/]},{name:S.TOSSPAY,match:[/toss/]},{name:S.ALIPAY,match:[/alipay/]}],T=[{name:S.DEMO,match:[/alipayIDE/i]},{name:S.ALIPAYHK,match:[O,E,/AlipayClientHK/]},{name:S.TNGD,match:[O,/TNGKit|Touch 'n Go/]},{name:S.GCASH,match:[O,P,/GCash/]},{name:S.TRUEMONEY,match:[O,P,/TrueMoney/]},{name:S.ALIPAY,match:[O,E,/alipay/i]},{name:S.DEMO,match:[O,P]}];function k(){return v(T,window.navigator.userAgent)}var B=[{name:S.ALIPAYHK,match:[A,E,/AlipayClientHK/]},{name:S.TNGD,match:[A,P,/TNGKit|Touch 'n Go/]},{name:S.TNGD_H5NG,match:[A,/TNGKit|Touch 'n Go/,/IAPWebH5NG/]},{name:S.GCASH,match:[A,P,/GCash/]},{name:S.TRUEMONEY,match:[A,P,/TrueMoney/i]},{name:S.KAKAOPAY,match:[A,/PAYCLIENT|KAKAOTALK|KAKAOPAY/]},{name:S.KAKAOTALK,match:[A,/ALIPAYCONNECT_KAKAO_TALK/]},{name:S.NAVERPAY,match:[A,/NAVER/]},{name:S.MPAY,match:[A,/mpay|macaupay/i]},{name:S.TOSSPAY,match:[A,/Toss/i]},{name:S.ALIPAY,match:[A,E,/AlipayClient/]},{name:S.DEMO,match:[A,P,/GriverDemo/]},{name:S.WORLDFIRST,match:[A,E,/WorldFirst/]}];function L(){return v(B,window.navigator.userAgent)||S.H5}var _=function(){var e,t;if("undefined"!=typeof wx||"undefined"!=typeof my&&"string"==typeof my.SDKVersion)e="undefined"!=typeof wx?S.WECHAT:v(C,my.getSystemInfoSync().app),t=w.MP;else{var n=function(){var e,t=(null===(e=window.location.search)||void 0===e?void 0:e.match(/__app__=([^&]*)/))||[],n=t[1],r=(window.location.search.match(/__platform__=([^&]*)/)||[])[1];if((n||r)&&localStorage.setItem("__hy_env__",JSON.stringify({client:n,platform:r})),t[1]){var o=window.location.search.replace(new RegExp("".concat(t[0],"(&)*")),""),a=window.location.hash||"",c="".concat(window.location.pathname).concat(o).concat(a);history.replaceState(null,"",c)}var i=localStorage.getItem("__hy_env__");if(!i){var u=localStorage.getItem("_CB__app__");return u?{client:u}:{}}return i?JSON.parse(i):{}}();n.platform?(t=n.platform,e=n.client||("mpweb"===t?k():L())):(e=n.client||k())?t=w.MPWEB:(e=L(),t=w.WEB)}return t&&e||b("Cannot identify your client."),{client:e,platform:t}}(),D=_.client,I=_.platform;m(S,D),m(w,I);var j,x,M=((j={})[w.MP]=function(e,t,n){var r=(n||{}).type,o=void 0===r?"async":r;return"sync"===o||(null==n?void 0:n.isSync)?my[e](t):("async"===o&&(my[e]?my[e](t):my.call(e,t)),"callback"===o&&my[e](t),"attribute"===o?my[e]:void 0)},j[w.MPWEB]=f,j[w.WEB]=function(t,n,r){e((function(){var e=(r||{}).type,o=void 0===e?"async":e;"async"===o&&window.AlipayJSBridge.call(t,n,(function(e){var t=n||{},r=t.success,o=t.fail,a=t.complete;e.error||e.errorCode?null==o||o(e):null==r||r(e),null==a||a(e)})),"callback"===o&&window.AlipayJSBridge.call(t,n)}))},j);function N(e,t,n){return I?M[I](e,t,n):function(e,t,n){var r;void 0===n&&(n={});var o=n.type,a=void 0===o?"async":o,c=u("NOTFOUND",e);if("sync"===a)return c;"callback"===a&&(null==t||t(c)),"async"===a&&(null===(r=null==t?void 0:t.fail)||void 0===r||r.call(t,c))}(t,n)}(x={})[w.MPWEB]=y,x[w.WEB]=function(e,t,n){return new Promise((function(r,o){var a,c=t||{},i=(c.success,c.fail),u=(c.complete,(n||{}).timeout),s=void 0===u?2e4:u;s>0&&(a=setTimeout((function(){var t={error:-101,errorMessage:"[".concat(e,"]: Timeout")};o(t),null==i||i(t)}),s)),window.AlipayJSBridge.call(e,t,(function(e){var n=t||{},c=n.success,i=n.fail,u=n.complete;a&&clearTimeout(a),(null==e?void 0:e.error)?(o(e),null==i||i(e)):(r(e),null==c||c(e)),null==u||u(e)}))}))};var K,G=function(){return G=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},G.apply(this,arguments)},F=(K=function(e){return f("getSystemInfo",e,{type:"async"})},function(e){return new Promise((function(t,n){var r=G(G({},e),{success:function(n){var r;t(n),null===(r=null==e?void 0:e.success)||void 0===r||r.call(e,n)},fail:function(t){var r;n(t),null===(r=null==e?void 0:e.fail)||void 0===r||r.call(e,t)}});K(r)}))});const Y=function(){var e=function(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function c(e){h(a,r,o,c,i,"next",e)}function i(e){h(a,r,o,c,i,"throw",e)}c(void 0)}))}}(g().mark((function e(t){var n,r,o;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=t.success,r=t.fail,o=t.complete,Promise.all([new Promise((function(e){N("getMPayUtdid",{success:function(t){e((null==t?void 0:t.utdid)||"")},fail:function(){e("")}})})),F()]).then((function(e){var t,r,o=(r=2,function(e){if(Array.isArray(e))return e}(t=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],c=!0,i=!1;try{for(n=n.call(e);!(c=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);c=!0);}catch(e){i=!0,o=e}finally{try{c||null==n.return||n.return()}finally{if(i)throw o}}return a}}(t,r)||function(e,t){if(e){if("string"==typeof e)return p(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?p(e,t):void 0}}(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),a=o[0],c=o[1],i=c.brand,u=c.model,s=c.platform,l={apdid:a,brand:i,model:u,appVersion:c.version,osType:s,osVersion:c.system,terminalType:"miniapp"},f=JSON.stringify(l);null==n||n({appToken:f})})).catch((function(e){null==r||r(e)})).finally((function(){null==o||o()}));case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();function R(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var V=["fail"];function H(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function W(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?H(Object(n),!0).forEach((function(t){R(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):H(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function U(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function J(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const $={addPhoneContact:function(e){return f("addPhoneContact",e,{type:"async"})},alert:function(e){return f("alert",e,{type:"async"})},chooseImage:function(e){return f("chooseImage",e,{type:"async"})},choosePhoneContact:function(e){return f("choosePhoneContact",e,{type:"async"})},clearStorage:function(e){return f("clearStorage",e,{type:"async"})},closeBluetoothAdapter:function(e){return f("closeBluetoothAdapter",e,{type:"async"})},closeSocket:function(e){return f("closeSocket",e,{type:"async"})},confirm:function(e){return f("confirm",e,{type:"async"})},connectBLEDevice:function(e){return f("connectBLEDevice",e,{type:"async"})},connectSocket:function(e){return f("connectSocket",e,{type:"async"})},datePicker:function(e){return f("datePicker",e,{type:"async"})},disconnectBLEDevice:function(e){return f("disconnectBLEDevice",e,{type:"async"})},downloadFile:function(e){return f("downloadFile",e,{type:"async"})},getAuthCode:function(e){return f("getAuthCode",e,{type:"async"})},getBatteryInfo:function(e){return f("getBatteryInfo",e,{type:"async"})},getBLEDeviceCharacteristics:function(e){return f("getBLEDeviceCharacteristics",e,{type:"async"})},getBLEDeviceServices:function(e){return f("getBLEDeviceServices",e,{type:"async"})},getBluetoothAdapterState:function(e){return f("getBluetoothAdapterState",e,{type:"async"})},getBluetoothDevices:function(e){return f("getBluetoothDevices",e,{type:"async"})},getClipboard:function(e){return f("getClipboard",e,{type:"async"})},getConnectedBluetoothDevices:function(e){return f("getConnectedBluetoothDevices",e,{type:"async"})},getFileInfo:function(e){return f("getFileInfo",e,{type:"async"})},getImageInfo:function(e){return f("getImageInfo",e,{type:"async"})},getNetworkType:function(e){return f("getNetworkType",e,{type:"async"})},getOpenUserInfo:function(e){return f("getOpenUserInfo",e,{type:"async"})},getSavedFileInfo:function(e){return f("getSavedFileInfo",e,{type:"async"})},getSavedFileList:function(e){return f("getSavedFileList",e,{type:"async"})},getScreenBrightness:function(e){return f("getScreenBrightness",e,{type:"async"})},getServerTime:function(e){return f("getServerTime",e,{type:"async"})},getSetting:function(e){return f("getSetting",e,{type:"async"})},getSiteInfo:function(e){return f("getSiteInfo",e,{type:"async"})},getStorage:function(e){return f("getStorage",e,{type:"async"})},getSystemInfo:function(e){return f("getSystemInfo",e,{type:"async"})},hideBackHome:function(e){return f("hideBackHome",e,{type:"async"})},hideKeyboard:function(e){return f("hideKeyboard",e,{type:"async"})},hideLoading:function(e){return f("hideLoading",e,{type:"async"})},hideNavigationBarLoading:function(e){return f("hideNavigationBarLoading",e,{type:"async"})},hideTabBar:function(e){return f("hideTabBar",e,{type:"async"})},hideToast:function(e){return f("hideToast",e,{type:"async"})},makePhoneCall:function(e){return f("makePhoneCall",e,{type:"async"})},multiLevelSelect:function(e){return f("multiLevelSelect",e,{type:"async"})},navigateBack:function(e){return f("navigateBack",e,{type:"async"})},navigateBackMiniProgram:function(e){return f("navigateBackMiniProgram",e,{type:"async"})},navigateTo:function(e){return f("navigateTo",e,{type:"async"})},navigateToBizScene:function(e){return f("navigateToBizScene",e,{type:"async"})},navigateToMiniProgram:function(e){return f("navigateToMiniProgram",e,{type:"async"})},notifyBLECharacteristicValueChange:function(e){return f("notifyBLECharacteristicValueChange",e,{type:"async"})},offAccelerometerChange:function(e){return f("offAccelerometerChange",e,{type:"callback"})},offBLECharacteristicValueChange:function(e){return f("offBLECharacteristicValueChange",e,{type:"callback"})},offBLEConnectionStateChanged:function(e){return f("offBLEConnectionStateChanged",e,{type:"callback"})},offBluetoothAdapterStateChange:function(e){return f("offBluetoothAdapterStateChange",e,{type:"callback"})},offBluetoothDeviceFound:function(e){return f("offBluetoothDeviceFound",e,{type:"callback"})},offCompassChange:function(e){return f("offCompassChange",e,{type:"callback"})},offMemoryWarning:function(e){return f("offMemoryWarning",e,{type:"callback"})},offSocketClose:function(e){return f("offSocketClose",e,{type:"callback"})},offSocketError:function(e){return f("offSocketError",e,{type:"callback"})},offSocketMessage:function(e){return f("offSocketMessage",e,{type:"callback"})},offSocketOpen:function(e){return f("offSocketOpen",e,{type:"callback"})},offUserCaptureScreen:function(e){return f("offUserCaptureScreen",e,{type:"callback"})},onAccelerometerChange:function(e){return f("onAccelerometerChange",e,{type:"callback"})},onBLECharacteristicValueChange:function(e){return f("onBLECharacteristicValueChange",e,{type:"callback"})},onBLEConnectionStateChanged:function(e){return f("onBLEConnectionStateChanged",e,{type:"callback"})},onBluetoothAdapterStateChange:function(e){return f("onBluetoothAdapterStateChange",e,{type:"callback"})},onBluetoothDeviceFound:function(e){return f("onBluetoothDeviceFound",e,{type:"callback"})},onCompassChange:function(e){return f("onCompassChange",e,{type:"callback"})},onMemoryWarning:function(e){return f("onMemoryWarning",e,{type:"callback"})},onSocketClose:function(e){return f("onSocketClose",e,{type:"callback"})},onSocketError:function(e){return f("onSocketError",e,{type:"callback"})},onSocketMessage:function(e){return f("onSocketMessage",e,{type:"callback"})},onSocketOpen:function(e){return f("onSocketOpen",e,{type:"callback"})},onUserCaptureScreen:function(e){return f("onUserCaptureScreen",e,{type:"callback"})},openBluetoothAdapter:function(e){return f("openBluetoothAdapter",e,{type:"async"})},openDocument:function(e){return f("openDocument",e,{type:"async"})},openSetting:function(e){return f("openSetting",e,{type:"async"})},pageScrollTo:function(e){return f("pageScrollTo",e,{type:"async"})},previewImage:function(e){return f("previewImage",e,{type:"async"})},prompt:function(e){return f("prompt",e,{type:"async"})},readBLECharacteristicValue:function(e){return f("readBLECharacteristicValue",e,{type:"async"})},redirectTo:function(e){return f("redirectTo",e,{type:"async"})},reLaunch:function(e){return f("reLaunch",e,{type:"async"})},removeSavedFile:function(e){return f("removeSavedFile",e,{type:"async"})},removeStorage:function(e){return f("removeStorage",e,{type:"async"})},request:function(e){return f("request",e,{type:"async"})},saveFile:function(e){return f("saveFile",e,{type:"async"})},saveImage:function(e){return f("saveImage",e,{type:"async"})},scan:function(e){return f("scan",e,{type:"async"})},sendSocketMessage:function(e){return f("sendSocketMessage",e,{type:"async"})},setBackgroundColor:function(e){return f("setBackgroundColor",e,{type:"async"})},setCanPullDown:function(e){return f("setCanPullDown",e,{type:"async"})},setClipboard:function(e){return f("setClipboard",e,{type:"async"})},setKeepScreenOn:function(e){return f("setKeepScreenOn",e,{type:"async"})},setNavigationBar:function(e){return f("setNavigationBar",e,{type:"async"})},setScreenBrightness:function(e){return f("setScreenBrightness",e,{type:"async"})},setStorage:function(e){return f("setStorage",e,{type:"async"})},setTabBarStyle:function(e){return f("setTabBarStyle",e,{type:"async"})},showActionSheet:function(e){return f("showActionSheet",e,{type:"async"})},showAuthGuide:function(e){return f("showAuthGuide",e,{type:"async"})},showLoading:function(e){return f("showLoading",e,{type:"async"})},showNavigationBarLoading:function(e){return f("showNavigationBarLoading",e,{type:"async"})},showToast:function(e){return f("showToast",e,{type:"async"})},signContract:function(e){return f("signContract",e,{type:"async"})},startBluetoothDevicesDiscovery:function(e){return f("startBluetoothDevicesDiscovery",e,{type:"async"})},startPullDownRefresh:function(e){return f("startPullDownRefresh",e,{type:"async"})},stopBluetoothDevicesDiscovery:function(e){return f("stopBluetoothDevicesDiscovery",e,{type:"async"})},stopPullDownRefresh:function(e){return f("stopPullDownRefresh",e,{type:"async"})},switchTab:function(e){return f("switchTab",e,{type:"async"})},tradePay:function(e){return f("tradePay",e,{type:"async"})},uploadFile:function(e){return f("uploadFile",e,{type:"async"})},vibrate:function(e){return f("vibrate",e,{type:"async"})},watchShake:function(e){return f("watchShake",e,{type:"async"})},writeBLECharacteristicValue:function(e){return f("writeBLECharacteristicValue",e,{type:"async"})},showSharePanel:function(e){return f("showSharePanel",e,{type:"async"})},setTransparentTitle:function(e){return f("setTransparentTitle",e,{type:"async"})},getRunScene:function(e){return f("getRunScene",e,{type:"async"})},chooseFileFromDisk:function(e){return f("chooseFileFromDisk",e,{type:"async"})},chooseVideo:function(e){return f("chooseVideo",e,{type:"async"})},compressImage:function(e){return f("compressImage",e,{type:"async"})},setTabBarItem:function(e){return f("setTabBarItem",e,{type:"async"})},showTabBar:function(e){return f("showTabBar",e,{type:"async"})},getAppToken:Y,getLocation:function(e){var t=e||{},n=t.fail;N("getLocation",W(W({},function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(t,V)),{},{fail:function(e){5===(null==e?void 0:e.error)&&(e.error=11),null==n||n(e)}}))},getAppId:function(e){N("getMPayAppIdSync",e)},getCurrentPages:function(e){f("__hy_internal__",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?U(Object(n),!0).forEach((function(t){R(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):U(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({name:"getCurrentPages"},e))},getSDKVersion:function(e){f("SDKVersion",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?J(Object(n),!0).forEach((function(t){R(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):J(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e),{type:"attribute"})}}})(),r.default})()));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hylid-bridge",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.21",
|
|
4
4
|
"main": "lib/index.js",
|
|
5
5
|
"description": "Unite Api For MiniProgram Project",
|
|
6
6
|
"files": [
|
|
@@ -57,12 +57,12 @@
|
|
|
57
57
|
"@alipay/stdlib": "^1.22.5",
|
|
58
58
|
"@babel/runtime": "7.18.9",
|
|
59
59
|
"@goldfishjs/utils": "^2.18.0",
|
|
60
|
-
"@hylid/call": "^4.0.
|
|
61
|
-
"@hylid/custom-jsapi": "^4.0.
|
|
62
|
-
"@hylid/env": "^4.0.
|
|
63
|
-
"@hylid/types": "^4.0.
|
|
60
|
+
"@hylid/call": "^4.0.21",
|
|
61
|
+
"@hylid/custom-jsapi": "^4.0.21",
|
|
62
|
+
"@hylid/env": "^4.0.21",
|
|
63
|
+
"@hylid/types": "^4.0.21",
|
|
64
64
|
"@types/miniprogram": "^1.0.3",
|
|
65
|
-
"miniapp-web-jsapi": "^4.0.
|
|
65
|
+
"miniapp-web-jsapi": "^4.0.21",
|
|
66
66
|
"qs-es5": "^6.8.4",
|
|
67
67
|
"url-parse": "^1.5.10"
|
|
68
68
|
},
|