mazey-wechat-launch-app 1.1.2 → 1.1.4
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/README.md +65 -7
- package/lib/index.cjs.js +2 -2
- package/lib/index.d.ts +1 -0
- package/lib/index.d.ts.map +1 -1
- package/lib/index.esm.js +2 -2
- package/lib/launch-app.min.js +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -18,10 +18,10 @@
|
|
|
18
18
|
npm install mazey-wechat-launch-app --save
|
|
19
19
|
```
|
|
20
20
|
|
|
21
|
-
注意:本项目依赖[微信 JS-SDK](https://developers.weixin.qq.com/doc/offiaccount/OA_Web_Apps/JS-SDK.html#3)、[js-sha1](https://github.com/emn178/js-sha1)、[jQuery](https://jquery.com/)、[mazey](https://github.com/mazeyqian/mazey),请确保已经引入,程序会在初始化的时候探测 `window.wx`、`window.sha1`、`window.$`/`window.jQuery`、`window.mazey`。
|
|
22
|
-
|
|
23
21
|
## Usage
|
|
24
22
|
|
|
23
|
+
### NPM
|
|
24
|
+
|
|
25
25
|
```
|
|
26
26
|
import LAUNCH_APP from 'mazey-wechat-launch-app';
|
|
27
27
|
|
|
@@ -36,6 +36,64 @@ const app = LAUNCH_APP(options);
|
|
|
36
36
|
app.start();
|
|
37
37
|
```
|
|
38
38
|
|
|
39
|
+
`<div class="example-btn><span>打开</span></div>` 生成的 HTML 结构如下:
|
|
40
|
+
|
|
41
|
+
```
|
|
42
|
+
<div class="example-btn mazey-launch-app-tag-0">
|
|
43
|
+
<span>打开</span>
|
|
44
|
+
<wx-open-launch-app
|
|
45
|
+
id="mazey-launch-app-btn-prefix-mazey-launch-app-tag-0"
|
|
46
|
+
appid="wx456"
|
|
47
|
+
extinfo="example://example/example"
|
|
48
|
+
style="z-index: 99; position: absolute; width: 100%; height: 100%; opacity: 1; background: transparent; overflow: hidden; left: 0;"
|
|
49
|
+
>
|
|
50
|
+
<script type="text/wxtag-template">
|
|
51
|
+
<style>.mazey-launch-app-inner-btn { opacity: 0; width: 100%; height: 100%; backgroud: transparent; color: #300f54; border: none; box-sizing: border-box; text-align: center; vertical-align: middle; }</style>
|
|
52
|
+
<button class="mazey-launch-app-inner-btn">Launch App</button>
|
|
53
|
+
</script>
|
|
54
|
+
</wx-open-launch-app>
|
|
55
|
+
</div>
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
注意:本项目依赖[微信 JS-SDK](https://developers.weixin.qq.com/doc/offiaccount/OA_Web_Apps/JS-SDK.html#3)、[js-sha1](https://github.com/emn178/js-sha1)、[jQuery](https://jquery.com/)、[mazey](https://github.com/mazeyqian/mazey),请确保已经引入,程序会在初始化的时候探测 `window.wx`、`window.sha1`、`window.$`/`window.jQuery`、`window.mazey`。
|
|
59
|
+
|
|
60
|
+
```
|
|
61
|
+
# Install
|
|
62
|
+
npm install js-sha1 jquery mazey --save
|
|
63
|
+
|
|
64
|
+
# Import
|
|
65
|
+
import sha1 from 'js-sha1';
|
|
66
|
+
import $ from 'jquery';
|
|
67
|
+
import mazey from 'mazey';
|
|
68
|
+
|
|
69
|
+
window.sha1 = sha1;
|
|
70
|
+
window.$ = $;
|
|
71
|
+
window.mazey = mazey;
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
### CDN
|
|
75
|
+
|
|
76
|
+
```
|
|
77
|
+
<script type="text/javascript" src="//res.wx.qq.com/open/js/jweixin-1.6.0.js"></script>
|
|
78
|
+
<script type="text/javascript" src="//i.mazey.net/lib/jquery/2.1.1/jquery.min.js"></script>
|
|
79
|
+
<script type="text/javascript" src="//i.mazey.net/lib/encode/js-sha1/0.6.0/sha1.min.js"></script>
|
|
80
|
+
<script type="text/javascript" src="//i.mazey.net/lib/mazey/3.6.6/mazey.min.js"></script>
|
|
81
|
+
<script type="text/javascript" src="//i.mazey.net/lib/mazey-wechat-launch-app/1.1.2/launch-app.min.js"></script>
|
|
82
|
+
<script>
|
|
83
|
+
var options = {
|
|
84
|
+
weixinJsSdkTicket: 'bxLdikRXVb',
|
|
85
|
+
launchContainerQuery: '.example-btn',
|
|
86
|
+
wexinServiceAccountAppId: 'wx123',
|
|
87
|
+
openPlatformMobileAppId: 'wx456',
|
|
88
|
+
extInfo: 'example://example/example',
|
|
89
|
+
};
|
|
90
|
+
var app = window.LAUNCH_APP(options);
|
|
91
|
+
app.start();
|
|
92
|
+
</script>
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
## API
|
|
96
|
+
|
|
39
97
|
### 参数
|
|
40
98
|
|
|
41
99
|
| 参数 | 说明 | 类型 | 值 |
|
|
@@ -48,11 +106,11 @@ app.start();
|
|
|
48
106
|
|
|
49
107
|
### 方法
|
|
50
108
|
|
|
51
|
-
| 方法 | 说明 | 类型 |
|
|
52
|
-
| :------------ | :------------ | :------------ |
|
|
53
|
-
| start | 生成 | function |
|
|
54
|
-
| update | 更新 | function |
|
|
55
|
-
| destroy | 销毁 | function |
|
|
109
|
+
| 方法 | 说明 | 类型 |
|
|
110
|
+
| :------------ | :------------ | :------------ |
|
|
111
|
+
| start | 生成 | function |
|
|
112
|
+
| update | 更新 | function |
|
|
113
|
+
| destroy | 销毁 | function |
|
|
56
114
|
|
|
57
115
|
## Contributing
|
|
58
116
|
|
package/lib/index.cjs.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* mazey-wechat-launch-app v1.1.
|
|
2
|
+
* mazey-wechat-launch-app v1.1.4
|
|
3
3
|
* (c) 2018-2023 Mazey Chu
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
"use strict";var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(t,n){return t(n={exports:{}},n.exports),n.exports}var e,r,o=function(t){return t&&t.Math==Math&&t},i=o("object"==typeof globalThis&&globalThis)||o("object"==typeof window&&window)||o("object"==typeof self&&self)||o("object"==typeof t&&t)||function(){return this}()||Function("return this")(),a=function(t){try{return!!t()}catch(t){return!0}},c=!a((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),u=!a((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),f=Function.prototype.call,s=u?f.bind(f):function(){return f.apply(f,arguments)},l={}.propertyIsEnumerable,p=Object.getOwnPropertyDescriptor,h=p&&!l.call({1:2},1)?function(t){var n=p(this,t);return!!n&&n.enumerable}:l,d={f:h},v=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}},y=Function.prototype,g=y.call,m=u&&y.bind.bind(g,g),b=u?m:function(t){return function(){return g.apply(t,arguments)}},w=b({}.toString),S=b("".slice),A=function(t){return S(w(t),8,-1)},O=Object,E=b("".split),P=a((function(){return!O("z").propertyIsEnumerable(0)}))?function(t){return"String"==A(t)?E(t,""):O(t)}:O,T=function(t){return null==t},_=TypeError,j=function(t){if(T(t))throw _("Can't call method on "+t);return t},L=function(t){return P(j(t))},C="object"==typeof document&&document.all,x={all:C,IS_HTMLDDA:void 0===C&&void 0!==C},I=x.all,R=x.IS_HTMLDDA?function(t){return"function"==typeof t||t===I}:function(t){return"function"==typeof t},N=x.all,k=x.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:R(t)||t===N}:function(t){return"object"==typeof t?null!==t:R(t)},M=function(t,n){return arguments.length<2?(e=i[t],R(e)?e:void 0):i[t]&&i[t][n];var e},U=b({}.isPrototypeOf),D="undefined"!=typeof navigator&&String(navigator.userAgent)||"",H=i.process,B=i.Deno,W=H&&H.versions||B&&B.version,z=W&&W.v8;z&&(r=(e=z.split("."))[0]>0&&e[0]<4?1:+(e[0]+e[1])),!r&&D&&(!(e=D.match(/Edge\/(\d+)/))||e[1]>=74)&&(e=D.match(/Chrome\/(\d+)/))&&(r=+e[1]);var F=r,G=!!Object.getOwnPropertySymbols&&!a((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&F&&F<41})),V=G&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,X=Object,q=V?function(t){return"symbol"==typeof t}:function(t){var n=M("Symbol");return R(n)&&U(n.prototype,X(t))},Y=String,J=function(t){try{return Y(t)}catch(t){return"Object"}},K=TypeError,Q=function(t){if(R(t))return t;throw K(J(t)+" is not a function")},$=function(t,n){var e=t[n];return T(e)?void 0:Q(e)},Z=TypeError,tt=Object.defineProperty,nt=function(t,n){try{tt(i,t,{value:n,configurable:!0,writable:!0})}catch(e){i[t]=n}return n},et="__core-js_shared__",rt=i[et]||nt(et,{}),ot=n((function(t){(t.exports=function(t,n){return rt[t]||(rt[t]=void 0!==n?n:{})})("versions",[]).push({version:"3.30.1",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.30.1/LICENSE",source:"https://github.com/zloirock/core-js"})})),it=Object,at=function(t){return it(j(t))},ct=b({}.hasOwnProperty),ut=Object.hasOwn||function(t,n){return ct(at(t),n)},ft=0,st=Math.random(),lt=b(1..toString),pt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+lt(++ft+st,36)},ht=i.Symbol,dt=ot("wks"),vt=V?ht.for||ht:ht&&ht.withoutSetter||pt,yt=function(t){return ut(dt,t)||(dt[t]=G&&ut(ht,t)?ht[t]:vt("Symbol."+t)),dt[t]},gt=TypeError,mt=yt("toPrimitive"),bt=function(t,n){if(!k(t)||q(t))return t;var e,r=$(t,mt);if(r){if(void 0===n&&(n="default"),e=s(r,t,n),!k(e)||q(e))return e;throw gt("Can't convert object to primitive value")}return void 0===n&&(n="number"),function(t,n){var e,r;if("string"===n&&R(e=t.toString)&&!k(r=s(e,t)))return r;if(R(e=t.valueOf)&&!k(r=s(e,t)))return r;if("string"!==n&&R(e=t.toString)&&!k(r=s(e,t)))return r;throw Z("Can't convert object to primitive value")}(t,n)},wt=function(t){var n=bt(t,"string");return q(n)?n:n+""},St=i.document,At=k(St)&&k(St.createElement),Ot=function(t){return At?St.createElement(t):{}},Et=!c&&!a((function(){return 7!=Object.defineProperty(Ot("div"),"a",{get:function(){return 7}}).a})),Pt=Object.getOwnPropertyDescriptor,Tt={f:c?Pt:function(t,n){if(t=L(t),n=wt(n),Et)try{return Pt(t,n)}catch(t){}if(ut(t,n))return v(!s(d.f,t,n),t[n])}},_t=c&&a((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),jt=String,Lt=TypeError,Ct=function(t){if(k(t))return t;throw Lt(jt(t)+" is not an object")},xt=TypeError,It=Object.defineProperty,Rt=Object.getOwnPropertyDescriptor,Nt="enumerable",kt="configurable",Mt="writable",Ut={f:c?_t?function(t,n,e){if(Ct(t),n=wt(n),Ct(e),"function"==typeof t&&"prototype"===n&&"value"in e&&Mt in e&&!e[Mt]){var r=Rt(t,n);r&&r[Mt]&&(t[n]=e.value,e={configurable:kt in e?e[kt]:r[kt],enumerable:Nt in e?e[Nt]:r[Nt],writable:!1})}return It(t,n,e)}:It:function(t,n,e){if(Ct(t),n=wt(n),Ct(e),Et)try{return It(t,n,e)}catch(t){}if("get"in e||"set"in e)throw xt("Accessors not supported");return"value"in e&&(t[n]=e.value),t}},Dt=c?function(t,n,e){return Ut.f(t,n,v(1,e))}:function(t,n,e){return t[n]=e,t},Ht=Function.prototype,Bt=c&&Object.getOwnPropertyDescriptor,Wt=ut(Ht,"name"),zt={EXISTS:Wt,PROPER:Wt&&"something"===function(){}.name,CONFIGURABLE:Wt&&(!c||c&&Bt(Ht,"name").configurable)},Ft=b(Function.toString);R(rt.inspectSource)||(rt.inspectSource=function(t){return Ft(t)});var Gt,Vt,Xt,qt=rt.inspectSource,Yt=i.WeakMap,Jt=R(Yt)&&/native code/.test(String(Yt)),Kt=ot("keys"),Qt=function(t){return Kt[t]||(Kt[t]=pt(t))},$t={},Zt="Object already initialized",tn=i.TypeError,nn=i.WeakMap;if(Jt||rt.state){var en=rt.state||(rt.state=new nn);en.get=en.get,en.has=en.has,en.set=en.set,Gt=function(t,n){if(en.has(t))throw tn(Zt);return n.facade=t,en.set(t,n),n},Vt=function(t){return en.get(t)||{}},Xt=function(t){return en.has(t)}}else{var rn=Qt("state");$t[rn]=!0,Gt=function(t,n){if(ut(t,rn))throw tn(Zt);return n.facade=t,Dt(t,rn,n),n},Vt=function(t){return ut(t,rn)?t[rn]:{}},Xt=function(t){return ut(t,rn)}}var on={set:Gt,get:Vt,has:Xt,enforce:function(t){return Xt(t)?Vt(t):Gt(t,{})},getterFor:function(t){return function(n){var e;if(!k(n)||(e=Vt(n)).type!==t)throw tn("Incompatible receiver, "+t+" required");return e}}},an=n((function(t){var n=zt.CONFIGURABLE,e=on.enforce,r=on.get,o=String,i=Object.defineProperty,u=b("".slice),f=b("".replace),s=b([].join),l=c&&!a((function(){return 8!==i((function(){}),"length",{value:8}).length})),p=String(String).split("String"),h=t.exports=function(t,r,a){"Symbol("===u(o(r),0,7)&&(r="["+f(o(r),/^Symbol\(([^)]*)\)/,"$1")+"]"),a&&a.getter&&(r="get "+r),a&&a.setter&&(r="set "+r),(!ut(t,"name")||n&&t.name!==r)&&(c?i(t,"name",{value:r,configurable:!0}):t.name=r),l&&a&&ut(a,"arity")&&t.length!==a.arity&&i(t,"length",{value:a.arity});try{a&&ut(a,"constructor")&&a.constructor?c&&i(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var h=e(t);return ut(h,"source")||(h.source=s(p,"string"==typeof r?r:"")),t};Function.prototype.toString=h((function(){return R(this)&&r(this).source||qt(this)}),"toString")})),cn=function(t,n,e,r){r||(r={});var o=r.enumerable,i=void 0!==r.name?r.name:n;if(R(e)&&an(e,i,r),r.global)o?t[n]=e:nt(n,e);else{try{r.unsafe?t[n]&&(o=!0):delete t[n]}catch(t){}o?t[n]=e:Ut.f(t,n,{value:e,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return t},un=Math.ceil,fn=Math.floor,sn=Math.trunc||function(t){var n=+t;return(n>0?fn:un)(n)},ln=function(t){var n=+t;return n!=n||0===n?0:sn(n)},pn=Math.max,hn=Math.min,dn=Math.min,vn=function(t){return(n=t.length)>0?dn(ln(n),9007199254740991):0;var n},yn=function(t){return function(n,e,r){var o,i=L(n),a=vn(i),c=function(t,n){var e=ln(t);return e<0?pn(e+n,0):hn(e,n)}(r,a);if(t&&e!=e){for(;a>c;)if((o=i[c++])!=o)return!0}else for(;a>c;c++)if((t||c in i)&&i[c]===e)return t||c||0;return!t&&-1}},gn={includes:yn(!0),indexOf:yn(!1)}.indexOf,mn=b([].push),bn=function(t,n){var e,r=L(t),o=0,i=[];for(e in r)!ut($t,e)&&ut(r,e)&&mn(i,e);for(;n.length>o;)ut(r,e=n[o++])&&(~gn(i,e)||mn(i,e));return i},wn=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Sn=wn.concat("length","prototype"),An={f:Object.getOwnPropertyNames||function(t){return bn(t,Sn)}},On={f:Object.getOwnPropertySymbols},En=b([].concat),Pn=M("Reflect","ownKeys")||function(t){var n=An.f(Ct(t)),e=On.f;return e?En(n,e(t)):n},Tn=function(t,n,e){for(var r=Pn(n),o=Ut.f,i=Tt.f,a=0;a<r.length;a++){var c=r[a];ut(t,c)||e&&ut(e,c)||o(t,c,i(n,c))}},_n=/#|\.prototype\./,jn=function(t,n){var e=Cn[Ln(t)];return e==In||e!=xn&&(R(n)?a(n):!!n)},Ln=jn.normalize=function(t){return String(t).replace(_n,".").toLowerCase()},Cn=jn.data={},xn=jn.NATIVE="N",In=jn.POLYFILL="P",Rn=jn,Nn=Tt.f,kn=function(t,n){var e,r,o,a,c,u=t.target,f=t.global,s=t.stat;if(e=f?i:s?i[u]||nt(u,{}):(i[u]||{}).prototype)for(r in n){if(a=n[r],o=t.dontCallGetSet?(c=Nn(e,r))&&c.value:e[r],!Rn(f?r:u+(s?".":"#")+r,t.forced)&&void 0!==o){if(typeof a==typeof o)continue;Tn(a,o)}(t.sham||o&&o.sham)&&Dt(a,"sham",!0),cn(e,r,a,t)}},Mn=Object.keys||function(t){return bn(t,wn)},Un=Object.assign,Dn=Object.defineProperty,Hn=b([].concat),Bn=!Un||a((function(){if(c&&1!==Un({b:1},Un(Dn({},"a",{enumerable:!0,get:function(){Dn(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},n={},e=Symbol(),r="abcdefghijklmnopqrst";return t[e]=7,r.split("").forEach((function(t){n[t]=t})),7!=Un({},t)[e]||Mn(Un({},n)).join("")!=r}))?function(t,n){for(var e=at(t),r=arguments.length,o=1,i=On.f,a=d.f;r>o;)for(var u,f=P(arguments[o++]),l=i?Hn(Mn(f),i(f)):Mn(f),p=l.length,h=0;p>h;)u=l[h++],c&&!s(a,f,u)||(e[u]=f[u]);return e}:Un;kn({target:"Object",stat:!0,arity:2,forced:Object.assign!==Bn},{assign:Bn});var Wn,zn=c&&!_t?Object.defineProperties:function(t,n){Ct(t);for(var e,r=L(n),o=Mn(n),i=o.length,a=0;i>a;)Ut.f(t,e=o[a++],r[e]);return t},Fn={f:zn},Gn=M("document","documentElement"),Vn="prototype",Xn="script",qn=Qt("IE_PROTO"),Yn=function(){},Jn=function(t){return"<"+Xn+">"+t+"</"+Xn+">"},Kn=function(t){t.write(Jn("")),t.close();var n=t.parentWindow.Object;return t=null,n},Qn=function(){try{Wn=new ActiveXObject("htmlfile")}catch(t){}var t,n,e;Qn="undefined"!=typeof document?document.domain&&Wn?Kn(Wn):(n=Ot("iframe"),e="java"+Xn+":",n.style.display="none",Gn.appendChild(n),n.src=String(e),(t=n.contentWindow.document).open(),t.write(Jn("document.F=Object")),t.close(),t.F):Kn(Wn);for(var r=wn.length;r--;)delete Qn[Vn][wn[r]];return Qn()};$t[qn]=!0;var $n=Object.create||function(t,n){var e;return null!==t?(Yn[Vn]=Ct(t),e=new Yn,Yn[Vn]=null,e[qn]=t):e=Qn(),void 0===n?e:Fn.f(e,n)},Zn=Ut.f,te=yt("unscopables"),ne=Array.prototype;null==ne[te]&&Zn(ne,te,{configurable:!0,value:$n(null)});var ee,re,oe,ie=function(t){ne[te][t]=!0},ae={},ce=!a((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),ue=Qt("IE_PROTO"),fe=Object,se=fe.prototype,le=ce?fe.getPrototypeOf:function(t){var n=at(t);if(ut(n,ue))return n[ue];var e=n.constructor;return R(e)&&n instanceof e?e.prototype:n instanceof fe?se:null},pe=yt("iterator"),he=!1;[].keys&&("next"in(oe=[].keys())?(re=le(le(oe)))!==Object.prototype&&(ee=re):he=!0);var de=!k(ee)||a((function(){var t={};return ee[pe].call(t)!==t}));de&&(ee={}),R(ee[pe])||cn(ee,pe,(function(){return this}));var ve={IteratorPrototype:ee,BUGGY_SAFARI_ITERATORS:he},ye=Ut.f,ge=yt("toStringTag"),me=function(t,n,e){t&&!e&&(t=t.prototype),t&&!ut(t,ge)&&ye(t,ge,{configurable:!0,value:n})},be=ve.IteratorPrototype,we=function(){return this},Se=String,Ae=TypeError,Oe=Object.setPrototypeOf||("__proto__"in{}?function(){var t,n=!1,e={};try{t=function(t,n,e){try{return b(Q(Object.getOwnPropertyDescriptor(t,n)[e]))}catch(t){}}(Object.prototype,"__proto__","set"),t(e,[]),n=e instanceof Array}catch(t){}return function(e,r){return Ct(e),function(t){if("object"==typeof t||R(t))return t;throw Ae("Can't set "+Se(t)+" as a prototype")}(r),n?t(e,r):e.__proto__=r,e}}():void 0),Ee=zt.PROPER,Pe=zt.CONFIGURABLE,Te=ve.IteratorPrototype,_e=ve.BUGGY_SAFARI_ITERATORS,je=yt("iterator"),Le="keys",Ce="values",xe="entries",Ie=function(){return this},Re=function(t,n,e,r,o,i,a){!function(t,n,e,r){var o=n+" Iterator";t.prototype=$n(be,{next:v(+!r,e)}),me(t,o,!1),ae[o]=we}(e,n,r);var c,u,f,l=function(t){if(t===o&&g)return g;if(!_e&&t in d)return d[t];switch(t){case Le:case Ce:case xe:return function(){return new e(this,t)}}return function(){return new e(this)}},p=n+" Iterator",h=!1,d=t.prototype,y=d[je]||d["@@iterator"]||o&&d[o],g=!_e&&y||l(o),m="Array"==n&&d.entries||y;if(m&&(c=le(m.call(new t)))!==Object.prototype&&c.next&&(le(c)!==Te&&(Oe?Oe(c,Te):R(c[je])||cn(c,je,Ie)),me(c,p,!0)),Ee&&o==Ce&&y&&y.name!==Ce&&(Pe?Dt(d,"name",Ce):(h=!0,g=function(){return s(y,this)})),o)if(u={values:l(Ce),keys:i?g:l(Le),entries:l(xe)},a)for(f in u)(_e||h||!(f in d))&&cn(d,f,u[f]);else kn({target:n,proto:!0,forced:_e||h},u);return d[je]!==g&&cn(d,je,g,{name:o}),ae[n]=g,u},Ne=function(t,n){return{value:t,done:n}},ke=Ut.f,Me="Array Iterator",Ue=on.set,De=on.getterFor(Me),He=Re(Array,"Array",(function(t,n){Ue(this,{type:Me,target:L(t),index:0,kind:n})}),(function(){var t=De(this),n=t.target,e=t.kind,r=t.index++;return!n||r>=n.length?(t.target=void 0,Ne(void 0,!0)):Ne("keys"==e?r:"values"==e?n[r]:[r,n[r]],!1)}),"values"),Be=ae.Arguments=ae.Array;if(ie("keys"),ie("values"),ie("entries"),c&&"values"!==Be.name)try{ke(Be,"name",{value:"values"})}catch(t){}var We={};We[yt("toStringTag")]="z";var ze="[object z]"===String(We),Fe=yt("toStringTag"),Ge=Object,Ve="Arguments"==A(function(){return arguments}()),Xe=ze?A:function(t){var n,e,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=function(t,n){try{return t[n]}catch(t){}}(n=Ge(t),Fe))?e:Ve?A(n):"Object"==(r=A(n))&&R(n.callee)?"Arguments":r},qe=ze?{}.toString:function(){return"[object "+Xe(this)+"]"};ze||cn(Object.prototype,"toString",qe,{unsafe:!0});var Ye="undefined"!=typeof process&&"process"==A(process),Je=yt("species"),Ke=TypeError,Qe=function(){},$e=[],Ze=M("Reflect","construct"),tr=/^\s*(?:class|function)\b/,nr=b(tr.exec),er=!tr.exec(Qe),rr=function(t){if(!R(t))return!1;try{return Ze(Qe,$e,t),!0}catch(t){return!1}},or=function(t){if(!R(t))return!1;switch(Xe(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return er||!!nr(tr,qt(t))}catch(t){return!0}};or.sham=!0;var ir,ar,cr,ur,fr=!Ze||a((function(){var t;return rr(rr.call)||!rr(Object)||!rr((function(){t=!0}))||t}))?or:rr,sr=TypeError,lr=yt("species"),pr=function(t,n){var e,r=Ct(t).constructor;return void 0===r||T(e=Ct(r)[lr])?n:function(t){if(fr(t))return t;throw sr(J(t)+" is not a constructor")}(e)},hr=Function.prototype,dr=hr.apply,vr=hr.call,yr="object"==typeof Reflect&&Reflect.apply||(u?vr.bind(dr):function(){return vr.apply(dr,arguments)}),gr=function(t){if("Function"===A(t))return b(t)},mr=gr(gr.bind),br=function(t,n){return Q(t),void 0===n?t:u?mr(t,n):function(){return t.apply(n,arguments)}},wr=b([].slice),Sr=TypeError,Ar=/(?:ipad|iphone|ipod).*applewebkit/i.test(D),Or=i.setImmediate,Er=i.clearImmediate,Pr=i.process,Tr=i.Dispatch,_r=i.Function,jr=i.MessageChannel,Lr=i.String,Cr=0,xr={},Ir="onreadystatechange";a((function(){ir=i.location}));var Rr=function(t){if(ut(xr,t)){var n=xr[t];delete xr[t],n()}},Nr=function(t){return function(){Rr(t)}},kr=function(t){Rr(t.data)},Mr=function(t){i.postMessage(Lr(t),ir.protocol+"//"+ir.host)};Or&&Er||(Or=function(t){!function(t,n){if(t<n)throw Sr("Not enough arguments")}(arguments.length,1);var n=R(t)?t:_r(t),e=wr(arguments,1);return xr[++Cr]=function(){yr(n,void 0,e)},ar(Cr),Cr},Er=function(t){delete xr[t]},Ye?ar=function(t){Pr.nextTick(Nr(t))}:Tr&&Tr.now?ar=function(t){Tr.now(Nr(t))}:jr&&!Ar?(ur=(cr=new jr).port2,cr.port1.onmessage=kr,ar=br(ur.postMessage,ur)):i.addEventListener&&R(i.postMessage)&&!i.importScripts&&ir&&"file:"!==ir.protocol&&!a(Mr)?(ar=Mr,i.addEventListener("message",kr,!1)):ar=Ir in Ot("script")?function(t){Gn.appendChild(Ot("script"))[Ir]=function(){Gn.removeChild(this),Rr(t)}}:function(t){setTimeout(Nr(t),0)});var Ur={set:Or,clear:Er},Dr=function(){this.head=null,this.tail=null};Dr.prototype={add:function(t){var n={item:t,next:null},e=this.tail;e?e.next=n:this.head=n,this.tail=n},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}};var Hr,Br,Wr,zr,Fr,Gr=Dr,Vr=/ipad|iphone|ipod/i.test(D)&&"undefined"!=typeof Pebble,Xr=/web0s(?!.*chrome)/i.test(D),qr=Tt.f,Yr=Ur.set,Jr=i.MutationObserver||i.WebKitMutationObserver,Kr=i.document,Qr=i.process,$r=i.Promise,Zr=qr(i,"queueMicrotask"),to=Zr&&Zr.value;if(!to){var no=new Gr,eo=function(){var t,n;for(Ye&&(t=Qr.domain)&&t.exit();n=no.get();)try{n()}catch(t){throw no.head&&Hr(),t}t&&t.enter()};Ar||Ye||Xr||!Jr||!Kr?!Vr&&$r&&$r.resolve?((zr=$r.resolve(void 0)).constructor=$r,Fr=br(zr.then,zr),Hr=function(){Fr(eo)}):Ye?Hr=function(){Qr.nextTick(eo)}:(Yr=br(Yr,i),Hr=function(){Yr(eo)}):(Br=!0,Wr=Kr.createTextNode(""),new Jr(eo).observe(Wr,{characterData:!0}),Hr=function(){Wr.data=Br=!Br}),to=function(t){no.head||Hr(),no.add(t)}}var ro=to,oo=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},io=i.Promise,ao="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,co=!ao&&!Ye&&"object"==typeof window&&"object"==typeof document;io&&io.prototype;var uo,fo,so,lo,po,ho,vo,yo=yt("species"),go=!1,mo=R(i.PromiseRejectionEvent),bo=Rn("Promise",(function(){var t=qt(io),n=t!==String(io);if(!n&&66===F)return!0;if(!F||F<51||!/native code/.test(t)){var e=new io((function(t){t(1)})),r=function(t){t((function(){}),(function(){}))};if((e.constructor={})[yo]=r,!(go=e.then((function(){}))instanceof r))return!0}return!n&&(co||ao)&&!mo})),wo={CONSTRUCTOR:bo,REJECTION_EVENT:mo,SUBCLASSING:go},So=TypeError,Ao=function(t){var n,e;this.promise=new t((function(t,r){if(void 0!==n||void 0!==e)throw So("Bad Promise constructor");n=t,e=r})),this.resolve=Q(n),this.reject=Q(e)},Oo={f:function(t){return new Ao(t)}},Eo=Ur.set,Po="Promise",To=wo.CONSTRUCTOR,_o=wo.REJECTION_EVENT,jo=wo.SUBCLASSING,Lo=on.getterFor(Po),Co=on.set,xo=io&&io.prototype,Io=io,Ro=xo,No=i.TypeError,ko=i.document,Mo=i.process,Uo=Oo.f,Do=Uo,Ho=!!(ko&&ko.createEvent&&i.dispatchEvent),Bo="unhandledrejection",Wo=function(t){var n;return!(!k(t)||!R(n=t.then))&&n},zo=function(t,n){var e,r,o,i=n.value,a=1==n.state,c=a?t.ok:t.fail,u=t.resolve,f=t.reject,l=t.domain;try{c?(a||(2===n.rejection&&qo(n),n.rejection=1),!0===c?e=i:(l&&l.enter(),e=c(i),l&&(l.exit(),o=!0)),e===t.promise?f(No("Promise-chain cycle")):(r=Wo(e))?s(r,e,u,f):u(e)):f(i)}catch(t){l&&!o&&l.exit(),f(t)}},Fo=function(t,n){t.notified||(t.notified=!0,ro((function(){for(var e,r=t.reactions;e=r.get();)zo(e,t);t.notified=!1,n&&!t.rejection&&Vo(t)})))},Go=function(t,n,e){var r,o;Ho?((r=ko.createEvent("Event")).promise=n,r.reason=e,r.initEvent(t,!1,!0),i.dispatchEvent(r)):r={promise:n,reason:e},!_o&&(o=i["on"+t])?o(r):t===Bo&&function(t,n){try{1==arguments.length?console.error(t):console.error(t,n)}catch(t){}}("Unhandled promise rejection",e)},Vo=function(t){s(Eo,i,(function(){var n,e=t.facade,r=t.value;if(Xo(t)&&(n=oo((function(){Ye?Mo.emit("unhandledRejection",r,e):Go(Bo,e,r)})),t.rejection=Ye||Xo(t)?2:1,n.error))throw n.value}))},Xo=function(t){return 1!==t.rejection&&!t.parent},qo=function(t){s(Eo,i,(function(){var n=t.facade;Ye?Mo.emit("rejectionHandled",n):Go("rejectionhandled",n,t.value)}))},Yo=function(t,n,e){return function(r){t(n,r,e)}},Jo=function(t,n,e){t.done||(t.done=!0,e&&(t=e),t.value=n,t.state=2,Fo(t,!0))},Ko=function(t,n,e){if(!t.done){t.done=!0,e&&(t=e);try{if(t.facade===n)throw No("Promise can't be resolved itself");var r=Wo(n);r?ro((function(){var e={done:!1};try{s(r,n,Yo(Ko,e,t),Yo(Jo,e,t))}catch(n){Jo(e,n,t)}})):(t.value=n,t.state=1,Fo(t,!1))}catch(n){Jo({done:!1},n,t)}}};if(To&&(Ro=(Io=function(t){!function(t,n){if(U(n,t))return t;throw Ke("Incorrect invocation")}(this,Ro),Q(t),s(uo,this);var n=Lo(this);try{t(Yo(Ko,n),Yo(Jo,n))}catch(t){Jo(n,t)}}).prototype,(uo=function(t){Co(this,{type:Po,done:!1,notified:!1,parent:!1,reactions:new Gr,rejection:!1,state:0,value:void 0})}).prototype=cn(Ro,"then",(function(t,n){var e=Lo(this),r=Uo(pr(this,Io));return e.parent=!0,r.ok=!R(t)||t,r.fail=R(n)&&n,r.domain=Ye?Mo.domain:void 0,0==e.state?e.reactions.add(r):ro((function(){zo(r,e)})),r.promise})),fo=function(){var t=new uo,n=Lo(t);this.promise=t,this.resolve=Yo(Ko,n),this.reject=Yo(Jo,n)},Oo.f=Uo=function(t){return t===Io||undefined===t?new fo(t):Do(t)},R(io)&&xo!==Object.prototype)){so=xo.then,jo||cn(xo,"then",(function(t,n){var e=this;return new Io((function(t,n){s(so,e,t,n)})).then(t,n)}),{unsafe:!0});try{delete xo.constructor}catch(t){}Oe&&Oe(xo,Ro)}kn({global:!0,constructor:!0,wrap:!0,forced:To},{Promise:Io}),me(Io,Po,!1),vo=M(Po),c&&vo&&!vo[Je]&&(lo=vo,po=Je,(ho={configurable:!0,get:function(){return this}}).get&&an(ho.get,po,{getter:!0}),ho.set&&an(ho.set,po,{setter:!0}),Ut.f(lo,po,ho));var Qo=yt("iterator"),$o=Array.prototype,Zo=yt("iterator"),ti=function(t){if(!T(t))return $(t,Zo)||$(t,"@@iterator")||ae[Xe(t)]},ni=TypeError,ei=function(t,n,e){var r,o;Ct(t);try{if(!(r=$(t,"return"))){if("throw"===n)throw e;return e}r=s(r,t)}catch(t){o=!0,r=t}if("throw"===n)throw e;if(o)throw r;return Ct(r),e},ri=TypeError,oi=function(t,n){this.stopped=t,this.result=n},ii=oi.prototype,ai=function(t,n,e){var r,o,i,a,c,u,f,l,p=e&&e.that,h=!(!e||!e.AS_ENTRIES),d=!(!e||!e.IS_RECORD),v=!(!e||!e.IS_ITERATOR),y=!(!e||!e.INTERRUPTED),g=br(n,p),m=function(t){return r&&ei(r,"normal",t),new oi(!0,t)},b=function(t){return h?(Ct(t),y?g(t[0],t[1],m):g(t[0],t[1])):y?g(t,m):g(t)};if(d)r=t.iterator;else if(v)r=t;else{if(!(o=ti(t)))throw ri(J(t)+" is not iterable");if(void 0!==(l=o)&&(ae.Array===l||$o[Qo]===l)){for(i=0,a=vn(t);a>i;i++)if((c=b(t[i]))&&U(ii,c))return c;return new oi(!1)}r=function(t,n){var e=arguments.length<2?ti(t):n;if(Q(e))return Ct(s(e,t));throw ni(J(t)+" is not iterable")}(t,o)}for(u=d?t.next:r.next;!(f=s(u,r)).done;){try{c=b(f.value)}catch(t){ei(r,"throw",t)}if("object"==typeof c&&c&&U(ii,c))return c}return new oi(!1)},ci=yt("iterator"),ui=!1;try{var fi=0,si={next:function(){return{done:!!fi++}},return:function(){ui=!0}};si[ci]=function(){return this},Array.from(si,(function(){throw 2}))}catch(t){}var li=wo.CONSTRUCTOR||!function(t,n){if(!n&&!ui)return!1;var e=!1;try{var r={};r[ci]=function(){return{next:function(){return{done:e=!0}}}},t(r)}catch(t){}return e}((function(t){io.all(t).then(void 0,(function(){}))}));kn({target:"Promise",stat:!0,forced:li},{all:function(t){var n=this,e=Oo.f(n),r=e.resolve,o=e.reject,i=oo((function(){var e=Q(n.resolve),i=[],a=0,c=1;ai(t,(function(t){var u=a++,f=!1;c++,s(e,n,t).then((function(t){f||(f=!0,i[u]=t,--c||r(i))}),o)})),--c||r(i)}));return i.error&&o(i.value),e.promise}});var pi=wo.CONSTRUCTOR,hi=io&&io.prototype;if(kn({target:"Promise",proto:!0,forced:pi,real:!0},{catch:function(t){return this.then(void 0,t)}}),R(io)){var di=M("Promise").prototype.catch;hi.catch!==di&&cn(hi,"catch",di,{unsafe:!0})}kn({target:"Promise",stat:!0,forced:li},{race:function(t){var n=this,e=Oo.f(n),r=e.reject,o=oo((function(){var o=Q(n.resolve);ai(t,(function(t){s(o,n,t).then(e.resolve,r)}))}));return o.error&&r(o.value),e.promise}}),kn({target:"Promise",stat:!0,forced:wo.CONSTRUCTOR},{reject:function(t){var n=Oo.f(this);return s(n.reject,void 0,t),n.promise}});var vi=wo.CONSTRUCTOR;M("Promise"),kn({target:"Promise",stat:!0,forced:vi},{resolve:function(t){return function(t,n){if(Ct(t),k(n)&&n.constructor===t)return n;var e=Oo.f(t);return(0,e.resolve)(n),e.promise}(this,t)}});var yi=String,gi=function(t){if("Symbol"===Xe(t))throw TypeError("Cannot convert a Symbol value to a string");return yi(t)},mi=b("".charAt),bi=b("".charCodeAt),wi=b("".slice),Si=function(t){return function(n,e){var r,o,i=gi(j(n)),a=ln(e),c=i.length;return a<0||a>=c?t?"":void 0:(r=bi(i,a))<55296||r>56319||a+1===c||(o=bi(i,a+1))<56320||o>57343?t?mi(i,a):r:t?wi(i,a,a+2):o-56320+(r-55296<<10)+65536}},Ai={codeAt:Si(!1),charAt:Si(!0)}.charAt,Oi="String Iterator",Ei=on.set,Pi=on.getterFor(Oi);Re(String,"String",(function(t){Ei(this,{type:Oi,string:gi(t),index:0})}),(function(){var t,n=Pi(this),e=n.string,r=n.index;return r>=e.length?Ne(void 0,!0):(t=Ai(e,r),n.index+=t.length,Ne(t,!1))}));var Ti={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},_i=Ot("span").classList,ji=_i&&_i.constructor&&_i.constructor.prototype,Li=ji===Object.prototype?void 0:ji,Ci=yt("iterator"),xi=yt("toStringTag"),Ii=He.values,Ri=function(t,n){if(t){if(t[Ci]!==Ii)try{Dt(t,Ci,Ii)}catch(n){t[Ci]=Ii}if(t[xi]||Dt(t,xi,n),Ti[n])for(var e in He)if(t[e]!==He[e])try{Dt(t,e,He[e])}catch(n){t[e]=He[e]}}};for(var Ni in Ti)Ri(i[Ni]&&i[Ni].prototype,Ni);Ri(Li,"DOMTokenList");var ki,Mi=Array.isArray||function(t){return"Array"==A(t)},Ui=TypeError,Di=function(t){if(t>9007199254740991)throw Ui("Maximum allowed index exceeded");return t},Hi=function(t,n,e){var r=wt(n);r in t?Ut.f(t,r,v(0,e)):t[r]=e},Bi=yt("species"),Wi=Array,zi=function(t,n){return new(function(t){var n;return Mi(t)&&(n=t.constructor,(fr(n)&&(n===Wi||Mi(n.prototype))||k(n)&&null===(n=n[Bi]))&&(n=void 0)),void 0===n?Wi:n}(t))(0===n?0:n)},Fi=yt("species"),Gi=yt("isConcatSpreadable"),Vi=F>=51||!a((function(){var t=[];return t[Gi]=!1,t.concat()[0]!==t})),Xi=function(t){if(!k(t))return!1;var n=t[Gi];return void 0!==n?!!n:Mi(t)},qi=!(Vi&&(ki="concat",F>=51||!a((function(){var t=[];return(t.constructor={})[Fi]=function(){return{foo:1}},1!==t[ki](Boolean).foo}))));kn({target:"Array",proto:!0,arity:1,forced:qi},{concat:function(t){var n,e,r,o,i,a=at(this),c=zi(a,0),u=0;for(n=-1,r=arguments.length;n<r;n++)if(Xi(i=-1===n?a:arguments[n]))for(o=vn(i),Di(u+o),e=0;e<o;e++,u++)e in i&&Hi(c,u,i[e]);else Di(u+1),Hi(c,u++,i);return c.length=u,c}});var Yi=function(){return Yi=Object.assign||function(t){for(var n,e=1,r=arguments.length;e<r;e++)for(var o in n=arguments[e])Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);return t},Yi.apply(this,arguments)},Ji={weixinJsSdkTicket:"",launchContainerQuery:".mazey-launch-app-selector",launchShowWeixinToBrowserImgUrl:"",canShowWeixinToBrowser:!1,extInfo:"",wexinServiceAccountAppId:"",openPlatformMobileAppId:"",genTagPrefixStr:"mazey-launch-app-btn-prefix-",launchShowWeixinToBrowserClassName:"mazey-launch-app-wx-to-browser",launchBtnClassName:"mazey-launch-app-inner-btn",launchBtnStyle:"",launchBtnText:"Launch App ;-)",launchErrorLink:"",canContinuousUpdating:!1,onMenuShareTimelineOptions:void 0,onMenuShareAppMessageOptions:void 0,isConClosed:!0,isWxDebug:!1,canLaunchApp:function(){return!0},launchBtnClick:function(){},launchReady:function(){}};module.exports=function(t){void 0===t&&(t=Ji);var n=Object.assign(Ji,t),e=n.weixinJsSdkTicket,r=n.launchContainerQuery,o=n.genTagPrefixStr,i=n.launchShowWeixinToBrowserImgUrl,a=n.canShowWeixinToBrowser,c=n.launchShowWeixinToBrowserClassName,u=n.launchBtnClassName,f=n.launchBtnStyle,s=n.launchBtnText,l=n.launchErrorLink,p=n.wexinServiceAccountAppId,h=n.openPlatformMobileAppId,d=n.canContinuousUpdating,v=n.onMenuShareTimelineOptions,y=n.onMenuShareAppMessageOptions,g=n.isConClosed,m=n.isWxDebug,b=n.canLaunchApp,w=n.launchBtnClick,S=n.launchReady,A=n.extInfo,O=window.mazey,E=window.sha1,P=window.wx,T=window.$||window.jQuery;O&&E&&P&&T||console.error("Launch App: wx or sha1 or $ or mazey is not found");var _=function(){},j=O.genCustomConsole("LaunchCon:",{isClosed:g});j.log("Launch App");var L={title:"",link:"",imgUrl:"",success:function(){},cancel:function(){}},C={title:"",desc:"",link:"",imgUrl:"",type:"",dataUrl:"",success:function(){},cancel:function(){}},x={title:document.title,link:location.href};function I(){O.addStyle("\n .mazey-launch-app-mask {\n position: fixed;\n top: 0; right: 0; bottom: 0; left: 0;\n background-color: rgba(0, 0, 0, .5);\n text-align: right;\n font-size: 0;\n white-space: nowrap;\n overflow: auto;\n z-index: 999;\n }\n .mazey-launch-app-img {\n display: inline-block;\n vertical-align: middle;\n text-align: left;\n font-size: 14px;\n white-space: normal;\n width: 50vw;\n margin: 0.5rem 0.5rem 0 0;\n }\n .mazey-launch-app-img:after {\n content: '';\n display: inline-block;\n height: 100%;\n vertical-align: middle;\n }\n ",{id:"mazey-launch-app-mask-style"}),window.LAUNCH_APP_HIDE_WEIXIN_BROWSER||(window.LAUNCH_APP_HIDE_WEIXIN_BROWSER=function(){T(".mazey-launch-app-mask").hide()}),0===T(".mazey-launch-app-mask").length?T("body").append("<div class='mazey-launch-app-mask' onclick='window.LAUNCH_APP_HIDE_WEIXIN_BROWSER()'>"+"<img\n class='mazey-launch-app-img ".concat(c,"'\n src='").concat(i,"'\n alt='Launch App'\n />")+"</div>"):T(".mazey-launch-app-mask").show()}function R(){j.log("renderWeixinLaunchTemplate"),function(t,n){void 0===t&&(t=""),void 0===n&&(n=""),j.log("renderWXOpenLaunchApp"),Promise.all([Promise.resolve(e||window.LAUNCH_APP_WEIXIN_JS_SDK_TICKET),Promise.resolve(E)]).then((function(e){j.log("allRes",e);var i=e[0],c=e[1],p=O.generateRndNum(7),h=i,d=(new Date).getTime(),g=c("jsapi_ticket="+h+"&noncestr="+p+"×tamp="+d+"&url="+location.href);return P.config({debug:m,appId:t,timestamp:d,nonceStr:p,signature:g,jsApiList:["showOptionMenu","onMenuShareTimeline","onMenuShareAppMessage"],openTagList:["wx-open-launch-app"]}),P.ready((function(){v&&(j.log("onMenuShareTimelineOptions",v),P.onMenuShareTimeline(v)),window.LAUNCH_APP_SHARE_TIMELINE=function(t){t=Yi(Yi({},L),t),j.log("window LAUNCH_APP_SHARE_TIMELINE",t),P.onMenuShareTimeline(t)},y&&(j.log("onMenuShareAppMessageOptions",y),P.onMenuShareAppMessage(y)),window.LAUNCH_APP_SHARE_APP_MESSAGE=function(t){t=Yi(Yi({},C),t),j.log("window LAUNCH_APP_SHARE_APP_MESSAGE",t),P.onMenuShareAppMessage(t)},window.LAUNCH_APP_READY=!0,S&&S();var t=function(){var t=T(r);j.log("containers",r,t,t.length),t.length>0&&t.each((function(t,e){var r=T(e).attr("data-launch-app-key");if(!r){var i=T(e).parents("[data-launch-app-key]:eq(0)");i.length>0&&(r=i.attr("data-launch-app-key"),j.log("keyEle",i,r))}r||(r=t);var c="mazey-launch-app-tag-".concat(r),p=T(".".concat(c," wx-open-launch-app")),h=T(e).attr("data-launch-app-ext-info");if(!h){var d=T(e).parents("[data-launch-app-ext-info]:eq(0)");d.length>0&&(h=d.attr("data-launch-app-ext-info"),j.log("eleExtInfoEle parents",d,h))}h&&(A=h);var v=T(e).attr("data-launch-app-error-link");if(!v){var y=T(e).parents("[data-launch-app-error-link]:eq(0)");y.length>0&&(v=y.attr("data-launch-app-error-link"),j.log("eleErrorLinkEle parents",y,v))}var g=l;v&&(g=v),0===p.length&&(T(e).addClass(c),j.log("success:",c),function(t){var e=o,r=e+t,i="<style>.".concat(u," {")+"opacity: 0;width: 100%;height: 100%;backgroud: transparent;color: #300f54;border: none;box-sizing: border-box;text-align: center;vertical-align: middle;"+f+"}</style>"+'<button class="'.concat(u,'">')+s+"</button>",c="<wx-open-launch-app id='"+r+"' appid='"+n+"' extinfo='".concat(A)+"' style='z-index: 99; position: absolute; width: 100%; height: 100%; opacity: 1; background: transparent; overflow: hidden; left: 0;'><script type='text/wxtag-template'>"+i+"<\/script></wx-open-launch-app>";T("."+t+":eq(0)").append(c);var l=document.getElementById(r);l&&(l.addEventListener("ready",(function(t){j.log("ready event",t)})),l.addEventListener("launch",(function(t){j.log("launch event",t),t.detail&&t.detail.extInfo&&j.log("launch extInfo",t.detail.extInfo)})),l.addEventListener("error",(function(t){j.error(t.detail),T("[id^='"+e+"']").hide(),a&&I(),g&&(j.log("realErrorLink",g),location.href=g)})),l.addEventListener("click",(function(t){j.log("click event",t),w&&w()})))}(c))}))};t(),_=t})),P.error((function(t){j.error(t)})),"success:launch_app"})).catch((function(t){j.error(t)}))}(p,h)}function N(t){j.log("appUpdated",t),!window.LAUNCH_APP_LOAD&&b(t)&&(R(),window.LAUNCH_APP_LOAD=!0),d&&window.LAUNCH_APP_LOAD&&b(t)&&_()}function k(){j.log("appBeforeDestroy",k),window.LAUNCH_APP_LOAD=null,window.LAUNCH_APP_HIDE_WEIXIN_BROWSER=null}return L=Yi(Yi({},L),x),C=Yi(Yi({},C),x),window.LAUNCH_APP_UPDATE=N,window.LAUNCH_APP_BEFORE_DESTROY=k,window.LAUNCH_APP_SHOW_WEIXIN_TO_BROWSER=I,{LAUNCH_APP_UPDATE:N,LAUNCH_APP_BEFORE_DESTROY:k,LAUNCH_APP_SHOW_WEIXIN_TO_BROWSER:I,LAUNCH_APP_SHARE_TIMELINE:function(t){j.log("opt",t)},LAUNCH_APP_SHARE_APP_MESSAGE:function(t){j.log("opt",t)},start:N,update:N,destroy:k}};
|
|
6
|
+
"use strict";var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(t,n){return t(n={exports:{}},n.exports),n.exports}var e,r,o=function(t){return t&&t.Math==Math&&t},i=o("object"==typeof globalThis&&globalThis)||o("object"==typeof window&&window)||o("object"==typeof self&&self)||o("object"==typeof t&&t)||function(){return this}()||Function("return this")(),a=function(t){try{return!!t()}catch(t){return!0}},c=!a((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),u=!a((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),f=Function.prototype.call,s=u?f.bind(f):function(){return f.apply(f,arguments)},l={}.propertyIsEnumerable,p=Object.getOwnPropertyDescriptor,h=p&&!l.call({1:2},1)?function(t){var n=p(this,t);return!!n&&n.enumerable}:l,d={f:h},v=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}},y=Function.prototype,g=y.call,m=u&&y.bind.bind(g,g),b=u?m:function(t){return function(){return g.apply(t,arguments)}},w=b({}.toString),S=b("".slice),A=function(t){return S(w(t),8,-1)},O=Object,E=b("".split),P=a((function(){return!O("z").propertyIsEnumerable(0)}))?function(t){return"String"==A(t)?E(t,""):O(t)}:O,T=function(t){return null==t},_=TypeError,L=function(t){if(T(t))throw _("Can't call method on "+t);return t},j=function(t){return P(L(t))},C="object"==typeof document&&document.all,x={all:C,IS_HTMLDDA:void 0===C&&void 0!==C},I=x.all,R=x.IS_HTMLDDA?function(t){return"function"==typeof t||t===I}:function(t){return"function"==typeof t},k=x.all,N=x.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:R(t)||t===k}:function(t){return"object"==typeof t?null!==t:R(t)},M=function(t,n){return arguments.length<2?(e=i[t],R(e)?e:void 0):i[t]&&i[t][n];var e},U=b({}.isPrototypeOf),D="undefined"!=typeof navigator&&String(navigator.userAgent)||"",H=i.process,B=i.Deno,W=H&&H.versions||B&&B.version,z=W&&W.v8;z&&(r=(e=z.split("."))[0]>0&&e[0]<4?1:+(e[0]+e[1])),!r&&D&&(!(e=D.match(/Edge\/(\d+)/))||e[1]>=74)&&(e=D.match(/Chrome\/(\d+)/))&&(r=+e[1]);var F=r,G=!!Object.getOwnPropertySymbols&&!a((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&F&&F<41})),V=G&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,X=Object,q=V?function(t){return"symbol"==typeof t}:function(t){var n=M("Symbol");return R(n)&&U(n.prototype,X(t))},Y=String,J=function(t){try{return Y(t)}catch(t){return"Object"}},K=TypeError,Q=function(t){if(R(t))return t;throw K(J(t)+" is not a function")},$=function(t,n){var e=t[n];return T(e)?void 0:Q(e)},Z=TypeError,tt=Object.defineProperty,nt=function(t,n){try{tt(i,t,{value:n,configurable:!0,writable:!0})}catch(e){i[t]=n}return n},et="__core-js_shared__",rt=i[et]||nt(et,{}),ot=n((function(t){(t.exports=function(t,n){return rt[t]||(rt[t]=void 0!==n?n:{})})("versions",[]).push({version:"3.30.1",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.30.1/LICENSE",source:"https://github.com/zloirock/core-js"})})),it=Object,at=function(t){return it(L(t))},ct=b({}.hasOwnProperty),ut=Object.hasOwn||function(t,n){return ct(at(t),n)},ft=0,st=Math.random(),lt=b(1..toString),pt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+lt(++ft+st,36)},ht=i.Symbol,dt=ot("wks"),vt=V?ht.for||ht:ht&&ht.withoutSetter||pt,yt=function(t){return ut(dt,t)||(dt[t]=G&&ut(ht,t)?ht[t]:vt("Symbol."+t)),dt[t]},gt=TypeError,mt=yt("toPrimitive"),bt=function(t,n){if(!N(t)||q(t))return t;var e,r=$(t,mt);if(r){if(void 0===n&&(n="default"),e=s(r,t,n),!N(e)||q(e))return e;throw gt("Can't convert object to primitive value")}return void 0===n&&(n="number"),function(t,n){var e,r;if("string"===n&&R(e=t.toString)&&!N(r=s(e,t)))return r;if(R(e=t.valueOf)&&!N(r=s(e,t)))return r;if("string"!==n&&R(e=t.toString)&&!N(r=s(e,t)))return r;throw Z("Can't convert object to primitive value")}(t,n)},wt=function(t){var n=bt(t,"string");return q(n)?n:n+""},St=i.document,At=N(St)&&N(St.createElement),Ot=function(t){return At?St.createElement(t):{}},Et=!c&&!a((function(){return 7!=Object.defineProperty(Ot("div"),"a",{get:function(){return 7}}).a})),Pt=Object.getOwnPropertyDescriptor,Tt={f:c?Pt:function(t,n){if(t=j(t),n=wt(n),Et)try{return Pt(t,n)}catch(t){}if(ut(t,n))return v(!s(d.f,t,n),t[n])}},_t=c&&a((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Lt=String,jt=TypeError,Ct=function(t){if(N(t))return t;throw jt(Lt(t)+" is not an object")},xt=TypeError,It=Object.defineProperty,Rt=Object.getOwnPropertyDescriptor,kt="enumerable",Nt="configurable",Mt="writable",Ut={f:c?_t?function(t,n,e){if(Ct(t),n=wt(n),Ct(e),"function"==typeof t&&"prototype"===n&&"value"in e&&Mt in e&&!e[Mt]){var r=Rt(t,n);r&&r[Mt]&&(t[n]=e.value,e={configurable:Nt in e?e[Nt]:r[Nt],enumerable:kt in e?e[kt]:r[kt],writable:!1})}return It(t,n,e)}:It:function(t,n,e){if(Ct(t),n=wt(n),Ct(e),Et)try{return It(t,n,e)}catch(t){}if("get"in e||"set"in e)throw xt("Accessors not supported");return"value"in e&&(t[n]=e.value),t}},Dt=c?function(t,n,e){return Ut.f(t,n,v(1,e))}:function(t,n,e){return t[n]=e,t},Ht=Function.prototype,Bt=c&&Object.getOwnPropertyDescriptor,Wt=ut(Ht,"name"),zt={EXISTS:Wt,PROPER:Wt&&"something"===function(){}.name,CONFIGURABLE:Wt&&(!c||c&&Bt(Ht,"name").configurable)},Ft=b(Function.toString);R(rt.inspectSource)||(rt.inspectSource=function(t){return Ft(t)});var Gt,Vt,Xt,qt=rt.inspectSource,Yt=i.WeakMap,Jt=R(Yt)&&/native code/.test(String(Yt)),Kt=ot("keys"),Qt=function(t){return Kt[t]||(Kt[t]=pt(t))},$t={},Zt="Object already initialized",tn=i.TypeError,nn=i.WeakMap;if(Jt||rt.state){var en=rt.state||(rt.state=new nn);en.get=en.get,en.has=en.has,en.set=en.set,Gt=function(t,n){if(en.has(t))throw tn(Zt);return n.facade=t,en.set(t,n),n},Vt=function(t){return en.get(t)||{}},Xt=function(t){return en.has(t)}}else{var rn=Qt("state");$t[rn]=!0,Gt=function(t,n){if(ut(t,rn))throw tn(Zt);return n.facade=t,Dt(t,rn,n),n},Vt=function(t){return ut(t,rn)?t[rn]:{}},Xt=function(t){return ut(t,rn)}}var on={set:Gt,get:Vt,has:Xt,enforce:function(t){return Xt(t)?Vt(t):Gt(t,{})},getterFor:function(t){return function(n){var e;if(!N(n)||(e=Vt(n)).type!==t)throw tn("Incompatible receiver, "+t+" required");return e}}},an=n((function(t){var n=zt.CONFIGURABLE,e=on.enforce,r=on.get,o=String,i=Object.defineProperty,u=b("".slice),f=b("".replace),s=b([].join),l=c&&!a((function(){return 8!==i((function(){}),"length",{value:8}).length})),p=String(String).split("String"),h=t.exports=function(t,r,a){"Symbol("===u(o(r),0,7)&&(r="["+f(o(r),/^Symbol\(([^)]*)\)/,"$1")+"]"),a&&a.getter&&(r="get "+r),a&&a.setter&&(r="set "+r),(!ut(t,"name")||n&&t.name!==r)&&(c?i(t,"name",{value:r,configurable:!0}):t.name=r),l&&a&&ut(a,"arity")&&t.length!==a.arity&&i(t,"length",{value:a.arity});try{a&&ut(a,"constructor")&&a.constructor?c&&i(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var h=e(t);return ut(h,"source")||(h.source=s(p,"string"==typeof r?r:"")),t};Function.prototype.toString=h((function(){return R(this)&&r(this).source||qt(this)}),"toString")})),cn=function(t,n,e,r){r||(r={});var o=r.enumerable,i=void 0!==r.name?r.name:n;if(R(e)&&an(e,i,r),r.global)o?t[n]=e:nt(n,e);else{try{r.unsafe?t[n]&&(o=!0):delete t[n]}catch(t){}o?t[n]=e:Ut.f(t,n,{value:e,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return t},un=Math.ceil,fn=Math.floor,sn=Math.trunc||function(t){var n=+t;return(n>0?fn:un)(n)},ln=function(t){var n=+t;return n!=n||0===n?0:sn(n)},pn=Math.max,hn=Math.min,dn=Math.min,vn=function(t){return(n=t.length)>0?dn(ln(n),9007199254740991):0;var n},yn=function(t){return function(n,e,r){var o,i=j(n),a=vn(i),c=function(t,n){var e=ln(t);return e<0?pn(e+n,0):hn(e,n)}(r,a);if(t&&e!=e){for(;a>c;)if((o=i[c++])!=o)return!0}else for(;a>c;c++)if((t||c in i)&&i[c]===e)return t||c||0;return!t&&-1}},gn={includes:yn(!0),indexOf:yn(!1)}.indexOf,mn=b([].push),bn=function(t,n){var e,r=j(t),o=0,i=[];for(e in r)!ut($t,e)&&ut(r,e)&&mn(i,e);for(;n.length>o;)ut(r,e=n[o++])&&(~gn(i,e)||mn(i,e));return i},wn=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Sn=wn.concat("length","prototype"),An={f:Object.getOwnPropertyNames||function(t){return bn(t,Sn)}},On={f:Object.getOwnPropertySymbols},En=b([].concat),Pn=M("Reflect","ownKeys")||function(t){var n=An.f(Ct(t)),e=On.f;return e?En(n,e(t)):n},Tn=function(t,n,e){for(var r=Pn(n),o=Ut.f,i=Tt.f,a=0;a<r.length;a++){var c=r[a];ut(t,c)||e&&ut(e,c)||o(t,c,i(n,c))}},_n=/#|\.prototype\./,Ln=function(t,n){var e=Cn[jn(t)];return e==In||e!=xn&&(R(n)?a(n):!!n)},jn=Ln.normalize=function(t){return String(t).replace(_n,".").toLowerCase()},Cn=Ln.data={},xn=Ln.NATIVE="N",In=Ln.POLYFILL="P",Rn=Ln,kn=Tt.f,Nn=function(t,n){var e,r,o,a,c,u=t.target,f=t.global,s=t.stat;if(e=f?i:s?i[u]||nt(u,{}):(i[u]||{}).prototype)for(r in n){if(a=n[r],o=t.dontCallGetSet?(c=kn(e,r))&&c.value:e[r],!Rn(f?r:u+(s?".":"#")+r,t.forced)&&void 0!==o){if(typeof a==typeof o)continue;Tn(a,o)}(t.sham||o&&o.sham)&&Dt(a,"sham",!0),cn(e,r,a,t)}},Mn=Object.keys||function(t){return bn(t,wn)},Un=Object.assign,Dn=Object.defineProperty,Hn=b([].concat),Bn=!Un||a((function(){if(c&&1!==Un({b:1},Un(Dn({},"a",{enumerable:!0,get:function(){Dn(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},n={},e=Symbol(),r="abcdefghijklmnopqrst";return t[e]=7,r.split("").forEach((function(t){n[t]=t})),7!=Un({},t)[e]||Mn(Un({},n)).join("")!=r}))?function(t,n){for(var e=at(t),r=arguments.length,o=1,i=On.f,a=d.f;r>o;)for(var u,f=P(arguments[o++]),l=i?Hn(Mn(f),i(f)):Mn(f),p=l.length,h=0;p>h;)u=l[h++],c&&!s(a,f,u)||(e[u]=f[u]);return e}:Un;Nn({target:"Object",stat:!0,arity:2,forced:Object.assign!==Bn},{assign:Bn});var Wn=Array.isArray||function(t){return"Array"==A(t)},zn=TypeError,Fn=function(t){if(t>9007199254740991)throw zn("Maximum allowed index exceeded");return t},Gn=function(t,n,e){var r=wt(n);r in t?Ut.f(t,r,v(0,e)):t[r]=e},Vn={};Vn[yt("toStringTag")]="z";var Xn="[object z]"===String(Vn),qn=yt("toStringTag"),Yn=Object,Jn="Arguments"==A(function(){return arguments}()),Kn=Xn?A:function(t){var n,e,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=function(t,n){try{return t[n]}catch(t){}}(n=Yn(t),qn))?e:Jn?A(n):"Object"==(r=A(n))&&R(n.callee)?"Arguments":r},Qn=function(){},$n=[],Zn=M("Reflect","construct"),te=/^\s*(?:class|function)\b/,ne=b(te.exec),ee=!te.exec(Qn),re=function(t){if(!R(t))return!1;try{return Zn(Qn,$n,t),!0}catch(t){return!1}},oe=function(t){if(!R(t))return!1;switch(Kn(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return ee||!!ne(te,qt(t))}catch(t){return!0}};oe.sham=!0;var ie,ae=!Zn||a((function(){var t;return re(re.call)||!re(Object)||!re((function(){t=!0}))||t}))?oe:re,ce=yt("species"),ue=Array,fe=function(t,n){return new(function(t){var n;return Wn(t)&&(n=t.constructor,(ae(n)&&(n===ue||Wn(n.prototype))||N(n)&&null===(n=n[ce]))&&(n=void 0)),void 0===n?ue:n}(t))(0===n?0:n)},se=yt("species"),le=yt("isConcatSpreadable"),pe=F>=51||!a((function(){var t=[];return t[le]=!1,t.concat()[0]!==t})),he=function(t){if(!N(t))return!1;var n=t[le];return void 0!==n?!!n:Wn(t)},de=!(pe&&(ie="concat",F>=51||!a((function(){var t=[];return(t.constructor={})[se]=function(){return{foo:1}},1!==t[ie](Boolean).foo}))));Nn({target:"Array",proto:!0,arity:1,forced:de},{concat:function(t){var n,e,r,o,i,a=at(this),c=fe(a,0),u=0;for(n=-1,r=arguments.length;n<r;n++)if(he(i=-1===n?a:arguments[n]))for(o=vn(i),Fn(u+o),e=0;e<o;e++,u++)e in i&&Gn(c,u,i[e]);else Fn(u+1),Gn(c,u++,i);return c.length=u,c}});var ve,ye=c&&!_t?Object.defineProperties:function(t,n){Ct(t);for(var e,r=j(n),o=Mn(n),i=o.length,a=0;i>a;)Ut.f(t,e=o[a++],r[e]);return t},ge={f:ye},me=M("document","documentElement"),be="prototype",we="script",Se=Qt("IE_PROTO"),Ae=function(){},Oe=function(t){return"<"+we+">"+t+"</"+we+">"},Ee=function(t){t.write(Oe("")),t.close();var n=t.parentWindow.Object;return t=null,n},Pe=function(){try{ve=new ActiveXObject("htmlfile")}catch(t){}var t,n,e;Pe="undefined"!=typeof document?document.domain&&ve?Ee(ve):(n=Ot("iframe"),e="java"+we+":",n.style.display="none",me.appendChild(n),n.src=String(e),(t=n.contentWindow.document).open(),t.write(Oe("document.F=Object")),t.close(),t.F):Ee(ve);for(var r=wn.length;r--;)delete Pe[be][wn[r]];return Pe()};$t[Se]=!0;var Te=Object.create||function(t,n){var e;return null!==t?(Ae[be]=Ct(t),e=new Ae,Ae[be]=null,e[Se]=t):e=Pe(),void 0===n?e:ge.f(e,n)},_e=Ut.f,Le=yt("unscopables"),je=Array.prototype;null==je[Le]&&_e(je,Le,{configurable:!0,value:Te(null)});var Ce,xe,Ie,Re=function(t){je[Le][t]=!0},ke={},Ne=!a((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),Me=Qt("IE_PROTO"),Ue=Object,De=Ue.prototype,He=Ne?Ue.getPrototypeOf:function(t){var n=at(t);if(ut(n,Me))return n[Me];var e=n.constructor;return R(e)&&n instanceof e?e.prototype:n instanceof Ue?De:null},Be=yt("iterator"),We=!1;[].keys&&("next"in(Ie=[].keys())?(xe=He(He(Ie)))!==Object.prototype&&(Ce=xe):We=!0);var ze=!N(Ce)||a((function(){var t={};return Ce[Be].call(t)!==t}));ze&&(Ce={}),R(Ce[Be])||cn(Ce,Be,(function(){return this}));var Fe={IteratorPrototype:Ce,BUGGY_SAFARI_ITERATORS:We},Ge=Ut.f,Ve=yt("toStringTag"),Xe=function(t,n,e){t&&!e&&(t=t.prototype),t&&!ut(t,Ve)&&Ge(t,Ve,{configurable:!0,value:n})},qe=Fe.IteratorPrototype,Ye=function(){return this},Je=String,Ke=TypeError,Qe=Object.setPrototypeOf||("__proto__"in{}?function(){var t,n=!1,e={};try{t=function(t,n,e){try{return b(Q(Object.getOwnPropertyDescriptor(t,n)[e]))}catch(t){}}(Object.prototype,"__proto__","set"),t(e,[]),n=e instanceof Array}catch(t){}return function(e,r){return Ct(e),function(t){if("object"==typeof t||R(t))return t;throw Ke("Can't set "+Je(t)+" as a prototype")}(r),n?t(e,r):e.__proto__=r,e}}():void 0),$e=zt.PROPER,Ze=zt.CONFIGURABLE,tr=Fe.IteratorPrototype,nr=Fe.BUGGY_SAFARI_ITERATORS,er=yt("iterator"),rr="keys",or="values",ir="entries",ar=function(){return this},cr=function(t,n,e,r,o,i,a){!function(t,n,e,r){var o=n+" Iterator";t.prototype=Te(qe,{next:v(+!r,e)}),Xe(t,o,!1),ke[o]=Ye}(e,n,r);var c,u,f,l=function(t){if(t===o&&g)return g;if(!nr&&t in d)return d[t];switch(t){case rr:case or:case ir:return function(){return new e(this,t)}}return function(){return new e(this)}},p=n+" Iterator",h=!1,d=t.prototype,y=d[er]||d["@@iterator"]||o&&d[o],g=!nr&&y||l(o),m="Array"==n&&d.entries||y;if(m&&(c=He(m.call(new t)))!==Object.prototype&&c.next&&(He(c)!==tr&&(Qe?Qe(c,tr):R(c[er])||cn(c,er,ar)),Xe(c,p,!0)),$e&&o==or&&y&&y.name!==or&&(Ze?Dt(d,"name",or):(h=!0,g=function(){return s(y,this)})),o)if(u={values:l(or),keys:i?g:l(rr),entries:l(ir)},a)for(f in u)(nr||h||!(f in d))&&cn(d,f,u[f]);else Nn({target:n,proto:!0,forced:nr||h},u);return d[er]!==g&&cn(d,er,g,{name:o}),ke[n]=g,u},ur=function(t,n){return{value:t,done:n}},fr=Ut.f,sr="Array Iterator",lr=on.set,pr=on.getterFor(sr),hr=cr(Array,"Array",(function(t,n){lr(this,{type:sr,target:j(t),index:0,kind:n})}),(function(){var t=pr(this),n=t.target,e=t.kind,r=t.index++;return!n||r>=n.length?(t.target=void 0,ur(void 0,!0)):ur("keys"==e?r:"values"==e?n[r]:[r,n[r]],!1)}),"values"),dr=ke.Arguments=ke.Array;if(Re("keys"),Re("values"),Re("entries"),c&&"values"!==dr.name)try{fr(dr,"name",{value:"values"})}catch(t){}var vr=Xn?{}.toString:function(){return"[object "+Kn(this)+"]"};Xn||cn(Object.prototype,"toString",vr,{unsafe:!0});var yr,gr,mr,br,wr="undefined"!=typeof process&&"process"==A(process),Sr=yt("species"),Ar=TypeError,Or=TypeError,Er=yt("species"),Pr=function(t,n){var e,r=Ct(t).constructor;return void 0===r||T(e=Ct(r)[Er])?n:function(t){if(ae(t))return t;throw Or(J(t)+" is not a constructor")}(e)},Tr=Function.prototype,_r=Tr.apply,Lr=Tr.call,jr="object"==typeof Reflect&&Reflect.apply||(u?Lr.bind(_r):function(){return Lr.apply(_r,arguments)}),Cr=function(t){if("Function"===A(t))return b(t)},xr=Cr(Cr.bind),Ir=function(t,n){return Q(t),void 0===n?t:u?xr(t,n):function(){return t.apply(n,arguments)}},Rr=b([].slice),kr=TypeError,Nr=/(?:ipad|iphone|ipod).*applewebkit/i.test(D),Mr=i.setImmediate,Ur=i.clearImmediate,Dr=i.process,Hr=i.Dispatch,Br=i.Function,Wr=i.MessageChannel,zr=i.String,Fr=0,Gr={},Vr="onreadystatechange";a((function(){yr=i.location}));var Xr=function(t){if(ut(Gr,t)){var n=Gr[t];delete Gr[t],n()}},qr=function(t){return function(){Xr(t)}},Yr=function(t){Xr(t.data)},Jr=function(t){i.postMessage(zr(t),yr.protocol+"//"+yr.host)};Mr&&Ur||(Mr=function(t){!function(t,n){if(t<n)throw kr("Not enough arguments")}(arguments.length,1);var n=R(t)?t:Br(t),e=Rr(arguments,1);return Gr[++Fr]=function(){jr(n,void 0,e)},gr(Fr),Fr},Ur=function(t){delete Gr[t]},wr?gr=function(t){Dr.nextTick(qr(t))}:Hr&&Hr.now?gr=function(t){Hr.now(qr(t))}:Wr&&!Nr?(br=(mr=new Wr).port2,mr.port1.onmessage=Yr,gr=Ir(br.postMessage,br)):i.addEventListener&&R(i.postMessage)&&!i.importScripts&&yr&&"file:"!==yr.protocol&&!a(Jr)?(gr=Jr,i.addEventListener("message",Yr,!1)):gr=Vr in Ot("script")?function(t){me.appendChild(Ot("script"))[Vr]=function(){me.removeChild(this),Xr(t)}}:function(t){setTimeout(qr(t),0)});var Kr={set:Mr,clear:Ur},Qr=function(){this.head=null,this.tail=null};Qr.prototype={add:function(t){var n={item:t,next:null},e=this.tail;e?e.next=n:this.head=n,this.tail=n},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}};var $r,Zr,to,no,eo,ro=Qr,oo=/ipad|iphone|ipod/i.test(D)&&"undefined"!=typeof Pebble,io=/web0s(?!.*chrome)/i.test(D),ao=Tt.f,co=Kr.set,uo=i.MutationObserver||i.WebKitMutationObserver,fo=i.document,so=i.process,lo=i.Promise,po=ao(i,"queueMicrotask"),ho=po&&po.value;if(!ho){var vo=new ro,yo=function(){var t,n;for(wr&&(t=so.domain)&&t.exit();n=vo.get();)try{n()}catch(t){throw vo.head&&$r(),t}t&&t.enter()};Nr||wr||io||!uo||!fo?!oo&&lo&&lo.resolve?((no=lo.resolve(void 0)).constructor=lo,eo=Ir(no.then,no),$r=function(){eo(yo)}):wr?$r=function(){so.nextTick(yo)}:(co=Ir(co,i),$r=function(){co(yo)}):(Zr=!0,to=fo.createTextNode(""),new uo(yo).observe(to,{characterData:!0}),$r=function(){to.data=Zr=!Zr}),ho=function(t){vo.head||$r(),vo.add(t)}}var go=ho,mo=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},bo=i.Promise,wo="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,So=!wo&&!wr&&"object"==typeof window&&"object"==typeof document;bo&&bo.prototype;var Ao,Oo,Eo,Po,To,_o,Lo,jo=yt("species"),Co=!1,xo=R(i.PromiseRejectionEvent),Io=Rn("Promise",(function(){var t=qt(bo),n=t!==String(bo);if(!n&&66===F)return!0;if(!F||F<51||!/native code/.test(t)){var e=new bo((function(t){t(1)})),r=function(t){t((function(){}),(function(){}))};if((e.constructor={})[jo]=r,!(Co=e.then((function(){}))instanceof r))return!0}return!n&&(So||wo)&&!xo})),Ro={CONSTRUCTOR:Io,REJECTION_EVENT:xo,SUBCLASSING:Co},ko=TypeError,No=function(t){var n,e;this.promise=new t((function(t,r){if(void 0!==n||void 0!==e)throw ko("Bad Promise constructor");n=t,e=r})),this.resolve=Q(n),this.reject=Q(e)},Mo={f:function(t){return new No(t)}},Uo=Kr.set,Do="Promise",Ho=Ro.CONSTRUCTOR,Bo=Ro.REJECTION_EVENT,Wo=Ro.SUBCLASSING,zo=on.getterFor(Do),Fo=on.set,Go=bo&&bo.prototype,Vo=bo,Xo=Go,qo=i.TypeError,Yo=i.document,Jo=i.process,Ko=Mo.f,Qo=Ko,$o=!!(Yo&&Yo.createEvent&&i.dispatchEvent),Zo="unhandledrejection",ti=function(t){var n;return!(!N(t)||!R(n=t.then))&&n},ni=function(t,n){var e,r,o,i=n.value,a=1==n.state,c=a?t.ok:t.fail,u=t.resolve,f=t.reject,l=t.domain;try{c?(a||(2===n.rejection&&ai(n),n.rejection=1),!0===c?e=i:(l&&l.enter(),e=c(i),l&&(l.exit(),o=!0)),e===t.promise?f(qo("Promise-chain cycle")):(r=ti(e))?s(r,e,u,f):u(e)):f(i)}catch(t){l&&!o&&l.exit(),f(t)}},ei=function(t,n){t.notified||(t.notified=!0,go((function(){for(var e,r=t.reactions;e=r.get();)ni(e,t);t.notified=!1,n&&!t.rejection&&oi(t)})))},ri=function(t,n,e){var r,o;$o?((r=Yo.createEvent("Event")).promise=n,r.reason=e,r.initEvent(t,!1,!0),i.dispatchEvent(r)):r={promise:n,reason:e},!Bo&&(o=i["on"+t])?o(r):t===Zo&&function(t,n){try{1==arguments.length?console.error(t):console.error(t,n)}catch(t){}}("Unhandled promise rejection",e)},oi=function(t){s(Uo,i,(function(){var n,e=t.facade,r=t.value;if(ii(t)&&(n=mo((function(){wr?Jo.emit("unhandledRejection",r,e):ri(Zo,e,r)})),t.rejection=wr||ii(t)?2:1,n.error))throw n.value}))},ii=function(t){return 1!==t.rejection&&!t.parent},ai=function(t){s(Uo,i,(function(){var n=t.facade;wr?Jo.emit("rejectionHandled",n):ri("rejectionhandled",n,t.value)}))},ci=function(t,n,e){return function(r){t(n,r,e)}},ui=function(t,n,e){t.done||(t.done=!0,e&&(t=e),t.value=n,t.state=2,ei(t,!0))},fi=function(t,n,e){if(!t.done){t.done=!0,e&&(t=e);try{if(t.facade===n)throw qo("Promise can't be resolved itself");var r=ti(n);r?go((function(){var e={done:!1};try{s(r,n,ci(fi,e,t),ci(ui,e,t))}catch(n){ui(e,n,t)}})):(t.value=n,t.state=1,ei(t,!1))}catch(n){ui({done:!1},n,t)}}};if(Ho&&(Xo=(Vo=function(t){!function(t,n){if(U(n,t))return t;throw Ar("Incorrect invocation")}(this,Xo),Q(t),s(Ao,this);var n=zo(this);try{t(ci(fi,n),ci(ui,n))}catch(t){ui(n,t)}}).prototype,(Ao=function(t){Fo(this,{type:Do,done:!1,notified:!1,parent:!1,reactions:new ro,rejection:!1,state:0,value:void 0})}).prototype=cn(Xo,"then",(function(t,n){var e=zo(this),r=Ko(Pr(this,Vo));return e.parent=!0,r.ok=!R(t)||t,r.fail=R(n)&&n,r.domain=wr?Jo.domain:void 0,0==e.state?e.reactions.add(r):go((function(){ni(r,e)})),r.promise})),Oo=function(){var t=new Ao,n=zo(t);this.promise=t,this.resolve=ci(fi,n),this.reject=ci(ui,n)},Mo.f=Ko=function(t){return t===Vo||undefined===t?new Oo(t):Qo(t)},R(bo)&&Go!==Object.prototype)){Eo=Go.then,Wo||cn(Go,"then",(function(t,n){var e=this;return new Vo((function(t,n){s(Eo,e,t,n)})).then(t,n)}),{unsafe:!0});try{delete Go.constructor}catch(t){}Qe&&Qe(Go,Xo)}Nn({global:!0,constructor:!0,wrap:!0,forced:Ho},{Promise:Vo}),Xe(Vo,Do,!1),Lo=M(Do),c&&Lo&&!Lo[Sr]&&(Po=Lo,To=Sr,(_o={configurable:!0,get:function(){return this}}).get&&an(_o.get,To,{getter:!0}),_o.set&&an(_o.set,To,{setter:!0}),Ut.f(Po,To,_o));var si=yt("iterator"),li=Array.prototype,pi=yt("iterator"),hi=function(t){if(!T(t))return $(t,pi)||$(t,"@@iterator")||ke[Kn(t)]},di=TypeError,vi=function(t,n,e){var r,o;Ct(t);try{if(!(r=$(t,"return"))){if("throw"===n)throw e;return e}r=s(r,t)}catch(t){o=!0,r=t}if("throw"===n)throw e;if(o)throw r;return Ct(r),e},yi=TypeError,gi=function(t,n){this.stopped=t,this.result=n},mi=gi.prototype,bi=function(t,n,e){var r,o,i,a,c,u,f,l,p=e&&e.that,h=!(!e||!e.AS_ENTRIES),d=!(!e||!e.IS_RECORD),v=!(!e||!e.IS_ITERATOR),y=!(!e||!e.INTERRUPTED),g=Ir(n,p),m=function(t){return r&&vi(r,"normal",t),new gi(!0,t)},b=function(t){return h?(Ct(t),y?g(t[0],t[1],m):g(t[0],t[1])):y?g(t,m):g(t)};if(d)r=t.iterator;else if(v)r=t;else{if(!(o=hi(t)))throw yi(J(t)+" is not iterable");if(void 0!==(l=o)&&(ke.Array===l||li[si]===l)){for(i=0,a=vn(t);a>i;i++)if((c=b(t[i]))&&U(mi,c))return c;return new gi(!1)}r=function(t,n){var e=arguments.length<2?hi(t):n;if(Q(e))return Ct(s(e,t));throw di(J(t)+" is not iterable")}(t,o)}for(u=d?t.next:r.next;!(f=s(u,r)).done;){try{c=b(f.value)}catch(t){vi(r,"throw",t)}if("object"==typeof c&&c&&U(mi,c))return c}return new gi(!1)},wi=yt("iterator"),Si=!1;try{var Ai=0,Oi={next:function(){return{done:!!Ai++}},return:function(){Si=!0}};Oi[wi]=function(){return this},Array.from(Oi,(function(){throw 2}))}catch(t){}var Ei=Ro.CONSTRUCTOR||!function(t,n){if(!n&&!Si)return!1;var e=!1;try{var r={};r[wi]=function(){return{next:function(){return{done:e=!0}}}},t(r)}catch(t){}return e}((function(t){bo.all(t).then(void 0,(function(){}))}));Nn({target:"Promise",stat:!0,forced:Ei},{all:function(t){var n=this,e=Mo.f(n),r=e.resolve,o=e.reject,i=mo((function(){var e=Q(n.resolve),i=[],a=0,c=1;bi(t,(function(t){var u=a++,f=!1;c++,s(e,n,t).then((function(t){f||(f=!0,i[u]=t,--c||r(i))}),o)})),--c||r(i)}));return i.error&&o(i.value),e.promise}});var Pi=Ro.CONSTRUCTOR,Ti=bo&&bo.prototype;if(Nn({target:"Promise",proto:!0,forced:Pi,real:!0},{catch:function(t){return this.then(void 0,t)}}),R(bo)){var _i=M("Promise").prototype.catch;Ti.catch!==_i&&cn(Ti,"catch",_i,{unsafe:!0})}Nn({target:"Promise",stat:!0,forced:Ei},{race:function(t){var n=this,e=Mo.f(n),r=e.reject,o=mo((function(){var o=Q(n.resolve);bi(t,(function(t){s(o,n,t).then(e.resolve,r)}))}));return o.error&&r(o.value),e.promise}}),Nn({target:"Promise",stat:!0,forced:Ro.CONSTRUCTOR},{reject:function(t){var n=Mo.f(this);return s(n.reject,void 0,t),n.promise}});var Li=Ro.CONSTRUCTOR;M("Promise"),Nn({target:"Promise",stat:!0,forced:Li},{resolve:function(t){return function(t,n){if(Ct(t),N(n)&&n.constructor===t)return n;var e=Mo.f(t);return(0,e.resolve)(n),e.promise}(this,t)}});var ji=String,Ci=function(t){if("Symbol"===Kn(t))throw TypeError("Cannot convert a Symbol value to a string");return ji(t)},xi=b("".charAt),Ii=b("".charCodeAt),Ri=b("".slice),ki=function(t){return function(n,e){var r,o,i=Ci(L(n)),a=ln(e),c=i.length;return a<0||a>=c?t?"":void 0:(r=Ii(i,a))<55296||r>56319||a+1===c||(o=Ii(i,a+1))<56320||o>57343?t?xi(i,a):r:t?Ri(i,a,a+2):o-56320+(r-55296<<10)+65536}},Ni={codeAt:ki(!1),charAt:ki(!0)}.charAt,Mi="String Iterator",Ui=on.set,Di=on.getterFor(Mi);cr(String,"String",(function(t){Ui(this,{type:Mi,string:Ci(t),index:0})}),(function(){var t,n=Di(this),e=n.string,r=n.index;return r>=e.length?ur(void 0,!0):(t=Ni(e,r),n.index+=t.length,ur(t,!1))}));var Hi={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Bi=Ot("span").classList,Wi=Bi&&Bi.constructor&&Bi.constructor.prototype,zi=Wi===Object.prototype?void 0:Wi,Fi=yt("iterator"),Gi=yt("toStringTag"),Vi=hr.values,Xi=function(t,n){if(t){if(t[Fi]!==Vi)try{Dt(t,Fi,Vi)}catch(n){t[Fi]=Vi}if(t[Gi]||Dt(t,Gi,n),Hi[n])for(var e in hr)if(t[e]!==hr[e])try{Dt(t,e,hr[e])}catch(n){t[e]=hr[e]}}};for(var qi in Hi)Xi(i[qi]&&i[qi].prototype,qi);Xi(zi,"DOMTokenList");var Yi=function(){return Yi=Object.assign||function(t){for(var n,e=1,r=arguments.length;e<r;e++)for(var o in n=arguments[e])Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);return t},Yi.apply(this,arguments)},Ji={weixinJsSdkTicket:"",launchContainerQuery:".mazey-launch-app-selector",launchShowWeixinToBrowserImgUrl:"",canShowWeixinToBrowser:!1,extInfo:"",wexinServiceAccountAppId:"",openPlatformMobileAppId:"",genTagPrefixStr:"mazey-launch-app-btn-prefix-",launchShowWeixinToBrowserClassName:"mazey-launch-app-wx-to-browser",launchBtnClassName:"mazey-launch-app-inner-btn",launchBtnStyle:"",launchBtnText:"Launch App",launchErrorLink:"",canContinuousUpdating:!1,onMenuShareTimelineOptions:void 0,onMenuShareAppMessageOptions:void 0,isConClosed:!0,isWxDebug:!1,canLaunchApp:function(){return!0},canFireErrorLinkDirectly:function(){return!1},launchBtnClick:function(){},launchReady:function(){}};module.exports=function(t){void 0===t&&(t=Ji);var n=Object.assign(Ji,t),e=n.weixinJsSdkTicket,r=n.launchContainerQuery,o=n.genTagPrefixStr,i=n.launchShowWeixinToBrowserImgUrl,a=n.canShowWeixinToBrowser,c=n.launchShowWeixinToBrowserClassName,u=n.launchBtnClassName,f=n.launchBtnStyle,s=n.launchBtnText,l=n.launchErrorLink,p=n.wexinServiceAccountAppId,h=n.openPlatformMobileAppId,d=n.canContinuousUpdating,v=n.onMenuShareTimelineOptions,y=n.onMenuShareAppMessageOptions,g=n.isConClosed,m=n.isWxDebug,b=n.canLaunchApp,w=n.canFireErrorLinkDirectly,S=n.launchBtnClick,A=n.launchReady,O=n.extInfo,E=window.mazey,P=window.sha1,T=window.wx,_=window.$||window.jQuery;E&&P&&T&&_||console.error("Launch App: wx or sha1 or $ or mazey is not found");var L=function(){},j=E.genCustomConsole("LaunchCon:",{isClosed:g});j.log("Launch App");var C={title:"",link:"",imgUrl:"",success:function(){},cancel:function(){}},x={title:"",desc:"",link:"",imgUrl:"",type:"",dataUrl:"",success:function(){},cancel:function(){}},I={title:document.title,link:location.href};C=Yi(Yi({},C),I),x=Yi(Yi({},x),I);var R=function(t,n,e){return void 0===t&&(t=""),void 0===n&&(n=""),void 0===e&&(e="button"),"<style>.".concat(u," {")+"opacity: 0;width: 100%;height: 100%;backgroud: transparent;color: #300f54;border: none;box-sizing: border-box;text-align: center;vertical-align: middle;"+f+n+"}</style>"+"<".concat(e,' class="').concat(u,'"')+(t&&"button"===e?' onclick="'.concat(t,'"'):"")+(t&&"a"===e?' target="_self" href="'.concat(t,'"'):"")+">"+s+"</".concat(e,">")},k=R();function N(){E.addStyle('.mazey-launch-app-mask { position: fixed; top: 0; right: 0; bottom: 0; left: 0; background-color: rgba(0, 0, 0, .5); text-align: right; font-size: 0; white-space: nowrap; overflow: auto; z-index: 999; } .mazey-launch-app-img { display: inline-block; vertical-align: middle; text-align: left; font-size: 14px; white-space: normal; width: 50vw; margin: 0.5rem 0.5rem 0 0; } .mazey-launch-app-img:after { content: ""; display: inline-block; height: 100%; vertical-align: middle; }',{id:"mazey-launch-app-mask-style"}),window.LAUNCH_APP_HIDE_WEIXIN_BROWSER||(window.LAUNCH_APP_HIDE_WEIXIN_BROWSER=function(){_(".mazey-launch-app-mask").hide()}),0===_(".mazey-launch-app-mask").length?_("body").append("<div class='mazey-launch-app-mask' onclick='window.LAUNCH_APP_HIDE_WEIXIN_BROWSER()'><img "+"class='mazey-launch-app-img ".concat(c,"' ")+"src='".concat(i,"' ")+"alt='Launch App' /></div>"):_(".mazey-launch-app-mask").show()}function M(){j.log("renderWeixinLaunchTemplate"),function(t,n){void 0===t&&(t=""),void 0===n&&(n=""),j.log("renderWXOpenLaunchApp"),Promise.all([Promise.resolve(e||window.LAUNCH_APP_WEIXIN_JS_SDK_TICKET),Promise.resolve(P)]).then((function(e){j.log("allRes",e);var i=e[0],c=e[1],u=E.generateRndNum(7),f=i,s=(new Date).getTime(),p=c("jsapi_ticket="+f+"&noncestr="+u+"×tamp="+s+"&url="+location.href);return T.config({debug:m,appId:t,timestamp:s,nonceStr:u,signature:p,jsApiList:["showOptionMenu","onMenuShareTimeline","onMenuShareAppMessage"],openTagList:["wx-open-launch-app"]}),T.ready((function(){v&&(j.log("onMenuShareTimelineOptions",v),T.onMenuShareTimeline(v)),window.LAUNCH_APP_SHARE_TIMELINE=function(t){t=Yi(Yi({},C),t),j.log("window LAUNCH_APP_SHARE_TIMELINE",t),T.onMenuShareTimeline(t)},y&&(j.log("onMenuShareAppMessageOptions",y),T.onMenuShareAppMessage(y)),window.LAUNCH_APP_SHARE_APP_MESSAGE=function(t){t=Yi(Yi({},x),t),j.log("window LAUNCH_APP_SHARE_APP_MESSAGE",t),T.onMenuShareAppMessage(t)},window.LAUNCH_APP_READY=!0,A&&A();var t=function(){var t=_(r);j.log("containers",r,t,t.length),t.length>0&&t.each((function(t,e){var r=_(e).attr("data-launch-app-key");if(!r){var i=_(e).parents("[data-launch-app-key]:eq(0)");i.length>0&&(r=i.attr("data-launch-app-key"),j.log("keyEle",i,r))}r||(r=t);var c="mazey-launch-app-tag-".concat(r),u=_(".".concat(c," wx-open-launch-app")),f=_(e).attr("data-launch-app-ext-info");if(!f){var s=_(e).parents("[data-launch-app-ext-info]:eq(0)");s.length>0&&(f=s.attr("data-launch-app-ext-info"),j.log("eleExtInfoEle parents",s,f))}f&&(O=f);var p=_(e).attr("data-launch-app-error-link");if(!p){var h=_(e).parents("[data-launch-app-error-link]:eq(0)");h.length>0&&(p=h.attr("data-launch-app-error-link"),j.log("eleErrorLinkEle parents",h,p))}var d=l;p&&(d=p),0===u.length&&(_(e).addClass(c),j.log("success:",c),function(t){var e=o,r=e+t,i="<wx-open-launch-app id='"+r+"' appid='"+n+"' extinfo='".concat(O)+"' style='z-index: 99; position: absolute; width: 100%; height: 100%; opacity: 1; background: transparent; overflow: hidden; left: 0;'><script type='text/wxtag-template'>"+k+"<\/script></wx-open-launch-app>";_("."+t+":eq(0)").append(i);var c=document.getElementById(r);c&&(c.addEventListener("ready",(function(t){j.log("ready event",t)})),c.addEventListener("launch",(function(t){j.log("launch event",t),t.detail&&t.detail.extInfo&&j.log("launch extInfo",t.detail.extInfo)})),c.addEventListener("error",(function(t){j.error(t.detail),_("[id^='"+e+"']").hide(),a&&N(),d&&(j.log("realErrorLink",d),location.href=d)})),c.addEventListener("click",(function(t){j.log("click event",t),S&&S()})))}(c))}))};t(),L=t})),T.error((function(t){j.error(t)})),"success:launch_app"})).catch((function(t){j.error(t)}))}(p,h)}function U(t){if(j.log("appUpdated",t),!window.LAUNCH_APP_LOAD&&b(t)&&(M(),window.LAUNCH_APP_LOAD=!0),d&&window.LAUNCH_APP_LOAD&&b(t)&&L(),w()){var n=_(r);n.length>0&&n.each((function(t,n){var e=_(n).children("."+u);if(!e||!e.length){var r=_(n).attr("data-launch-app-error-link");if(!r){var o=_(n).parents("[data-launch-app-error-link]:eq(0)");o.length>0&&(r=o.attr("data-launch-app-error-link"))}if(r&&"string"==typeof r&&r.length){var i=R(r,"position: absolute; left: 0; z-index: 999;","a");_(n).append(i)}}}))}}function D(){j.log("appBeforeDestroy",D),window.LAUNCH_APP_LOAD=null,window.LAUNCH_APP_HIDE_WEIXIN_BROWSER=null}return window.LAUNCH_APP_UPDATE=U,window.LAUNCH_APP_BEFORE_DESTROY=D,window.LAUNCH_APP_SHOW_WEIXIN_TO_BROWSER=N,{LAUNCH_APP_UPDATE:U,LAUNCH_APP_BEFORE_DESTROY:D,LAUNCH_APP_SHOW_WEIXIN_TO_BROWSER:N,LAUNCH_APP_SHARE_TIMELINE:function(t){j.log("opt",t)},LAUNCH_APP_SHARE_APP_MESSAGE:function(t){j.log("opt",t)},start:U,update:U,destroy:D}};
|
package/lib/index.d.ts
CHANGED
|
@@ -23,6 +23,7 @@ declare const _default: (options?: {
|
|
|
23
23
|
isConClosed?: boolean | undefined;
|
|
24
24
|
isWxDebug?: boolean | undefined;
|
|
25
25
|
canLaunchApp?: ((data: any) => boolean) | undefined;
|
|
26
|
+
canFireErrorLinkDirectly?: (() => boolean) | undefined;
|
|
26
27
|
launchBtnClick?: (() => void) | undefined;
|
|
27
28
|
launchReady?: (() => void) | undefined;
|
|
28
29
|
}) => retVal;
|
package/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AA0BA;;;;GAIG;;;;;;;;;;;;;;;;;;;;2BAqBuB,GAAG,KAAK,OAAO;sCACJ,OAAO;4BACjB,IAAI;yBACP,IAAI;MAEzB,MAAM;AAzBT,wBA+eE"}
|
package/lib/index.esm.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* mazey-wechat-launch-app v1.1.
|
|
2
|
+
* mazey-wechat-launch-app v1.1.4
|
|
3
3
|
* (c) 2018-2023 Mazey Chu
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(t,n){return t(n={exports:{}},n.exports),n.exports}var e,r,o=function(t){return t&&t.Math==Math&&t},i=o("object"==typeof globalThis&&globalThis)||o("object"==typeof window&&window)||o("object"==typeof self&&self)||o("object"==typeof t&&t)||function(){return this}()||Function("return this")(),a=function(t){try{return!!t()}catch(t){return!0}},c=!a((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),u=!a((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),f=Function.prototype.call,s=u?f.bind(f):function(){return f.apply(f,arguments)},l={}.propertyIsEnumerable,p=Object.getOwnPropertyDescriptor,h=p&&!l.call({1:2},1)?function(t){var n=p(this,t);return!!n&&n.enumerable}:l,d={f:h},v=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}},y=Function.prototype,g=y.call,m=u&&y.bind.bind(g,g),b=u?m:function(t){return function(){return g.apply(t,arguments)}},w=b({}.toString),S=b("".slice),A=function(t){return S(w(t),8,-1)},O=Object,E=b("".split),P=a((function(){return!O("z").propertyIsEnumerable(0)}))?function(t){return"String"==A(t)?E(t,""):O(t)}:O,T=function(t){return null==t},_=TypeError,j=function(t){if(T(t))throw _("Can't call method on "+t);return t},L=function(t){return P(j(t))},C="object"==typeof document&&document.all,x={all:C,IS_HTMLDDA:void 0===C&&void 0!==C},I=x.all,R=x.IS_HTMLDDA?function(t){return"function"==typeof t||t===I}:function(t){return"function"==typeof t},N=x.all,k=x.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:R(t)||t===N}:function(t){return"object"==typeof t?null!==t:R(t)},M=function(t,n){return arguments.length<2?(e=i[t],R(e)?e:void 0):i[t]&&i[t][n];var e},U=b({}.isPrototypeOf),D="undefined"!=typeof navigator&&String(navigator.userAgent)||"",H=i.process,B=i.Deno,W=H&&H.versions||B&&B.version,z=W&&W.v8;z&&(r=(e=z.split("."))[0]>0&&e[0]<4?1:+(e[0]+e[1])),!r&&D&&(!(e=D.match(/Edge\/(\d+)/))||e[1]>=74)&&(e=D.match(/Chrome\/(\d+)/))&&(r=+e[1]);var F=r,G=!!Object.getOwnPropertySymbols&&!a((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&F&&F<41})),V=G&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,X=Object,q=V?function(t){return"symbol"==typeof t}:function(t){var n=M("Symbol");return R(n)&&U(n.prototype,X(t))},Y=String,J=function(t){try{return Y(t)}catch(t){return"Object"}},K=TypeError,Q=function(t){if(R(t))return t;throw K(J(t)+" is not a function")},$=function(t,n){var e=t[n];return T(e)?void 0:Q(e)},Z=TypeError,tt=Object.defineProperty,nt=function(t,n){try{tt(i,t,{value:n,configurable:!0,writable:!0})}catch(e){i[t]=n}return n},et="__core-js_shared__",rt=i[et]||nt(et,{}),ot=n((function(t){(t.exports=function(t,n){return rt[t]||(rt[t]=void 0!==n?n:{})})("versions",[]).push({version:"3.30.1",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.30.1/LICENSE",source:"https://github.com/zloirock/core-js"})})),it=Object,at=function(t){return it(j(t))},ct=b({}.hasOwnProperty),ut=Object.hasOwn||function(t,n){return ct(at(t),n)},ft=0,st=Math.random(),lt=b(1..toString),pt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+lt(++ft+st,36)},ht=i.Symbol,dt=ot("wks"),vt=V?ht.for||ht:ht&&ht.withoutSetter||pt,yt=function(t){return ut(dt,t)||(dt[t]=G&&ut(ht,t)?ht[t]:vt("Symbol."+t)),dt[t]},gt=TypeError,mt=yt("toPrimitive"),bt=function(t,n){if(!k(t)||q(t))return t;var e,r=$(t,mt);if(r){if(void 0===n&&(n="default"),e=s(r,t,n),!k(e)||q(e))return e;throw gt("Can't convert object to primitive value")}return void 0===n&&(n="number"),function(t,n){var e,r;if("string"===n&&R(e=t.toString)&&!k(r=s(e,t)))return r;if(R(e=t.valueOf)&&!k(r=s(e,t)))return r;if("string"!==n&&R(e=t.toString)&&!k(r=s(e,t)))return r;throw Z("Can't convert object to primitive value")}(t,n)},wt=function(t){var n=bt(t,"string");return q(n)?n:n+""},St=i.document,At=k(St)&&k(St.createElement),Ot=function(t){return At?St.createElement(t):{}},Et=!c&&!a((function(){return 7!=Object.defineProperty(Ot("div"),"a",{get:function(){return 7}}).a})),Pt=Object.getOwnPropertyDescriptor,Tt={f:c?Pt:function(t,n){if(t=L(t),n=wt(n),Et)try{return Pt(t,n)}catch(t){}if(ut(t,n))return v(!s(d.f,t,n),t[n])}},_t=c&&a((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),jt=String,Lt=TypeError,Ct=function(t){if(k(t))return t;throw Lt(jt(t)+" is not an object")},xt=TypeError,It=Object.defineProperty,Rt=Object.getOwnPropertyDescriptor,Nt="enumerable",kt="configurable",Mt="writable",Ut={f:c?_t?function(t,n,e){if(Ct(t),n=wt(n),Ct(e),"function"==typeof t&&"prototype"===n&&"value"in e&&Mt in e&&!e[Mt]){var r=Rt(t,n);r&&r[Mt]&&(t[n]=e.value,e={configurable:kt in e?e[kt]:r[kt],enumerable:Nt in e?e[Nt]:r[Nt],writable:!1})}return It(t,n,e)}:It:function(t,n,e){if(Ct(t),n=wt(n),Ct(e),Et)try{return It(t,n,e)}catch(t){}if("get"in e||"set"in e)throw xt("Accessors not supported");return"value"in e&&(t[n]=e.value),t}},Dt=c?function(t,n,e){return Ut.f(t,n,v(1,e))}:function(t,n,e){return t[n]=e,t},Ht=Function.prototype,Bt=c&&Object.getOwnPropertyDescriptor,Wt=ut(Ht,"name"),zt={EXISTS:Wt,PROPER:Wt&&"something"===function(){}.name,CONFIGURABLE:Wt&&(!c||c&&Bt(Ht,"name").configurable)},Ft=b(Function.toString);R(rt.inspectSource)||(rt.inspectSource=function(t){return Ft(t)});var Gt,Vt,Xt,qt=rt.inspectSource,Yt=i.WeakMap,Jt=R(Yt)&&/native code/.test(String(Yt)),Kt=ot("keys"),Qt=function(t){return Kt[t]||(Kt[t]=pt(t))},$t={},Zt="Object already initialized",tn=i.TypeError,nn=i.WeakMap;if(Jt||rt.state){var en=rt.state||(rt.state=new nn);en.get=en.get,en.has=en.has,en.set=en.set,Gt=function(t,n){if(en.has(t))throw tn(Zt);return n.facade=t,en.set(t,n),n},Vt=function(t){return en.get(t)||{}},Xt=function(t){return en.has(t)}}else{var rn=Qt("state");$t[rn]=!0,Gt=function(t,n){if(ut(t,rn))throw tn(Zt);return n.facade=t,Dt(t,rn,n),n},Vt=function(t){return ut(t,rn)?t[rn]:{}},Xt=function(t){return ut(t,rn)}}var on={set:Gt,get:Vt,has:Xt,enforce:function(t){return Xt(t)?Vt(t):Gt(t,{})},getterFor:function(t){return function(n){var e;if(!k(n)||(e=Vt(n)).type!==t)throw tn("Incompatible receiver, "+t+" required");return e}}},an=n((function(t){var n=zt.CONFIGURABLE,e=on.enforce,r=on.get,o=String,i=Object.defineProperty,u=b("".slice),f=b("".replace),s=b([].join),l=c&&!a((function(){return 8!==i((function(){}),"length",{value:8}).length})),p=String(String).split("String"),h=t.exports=function(t,r,a){"Symbol("===u(o(r),0,7)&&(r="["+f(o(r),/^Symbol\(([^)]*)\)/,"$1")+"]"),a&&a.getter&&(r="get "+r),a&&a.setter&&(r="set "+r),(!ut(t,"name")||n&&t.name!==r)&&(c?i(t,"name",{value:r,configurable:!0}):t.name=r),l&&a&&ut(a,"arity")&&t.length!==a.arity&&i(t,"length",{value:a.arity});try{a&&ut(a,"constructor")&&a.constructor?c&&i(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var h=e(t);return ut(h,"source")||(h.source=s(p,"string"==typeof r?r:"")),t};Function.prototype.toString=h((function(){return R(this)&&r(this).source||qt(this)}),"toString")})),cn=function(t,n,e,r){r||(r={});var o=r.enumerable,i=void 0!==r.name?r.name:n;if(R(e)&&an(e,i,r),r.global)o?t[n]=e:nt(n,e);else{try{r.unsafe?t[n]&&(o=!0):delete t[n]}catch(t){}o?t[n]=e:Ut.f(t,n,{value:e,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return t},un=Math.ceil,fn=Math.floor,sn=Math.trunc||function(t){var n=+t;return(n>0?fn:un)(n)},ln=function(t){var n=+t;return n!=n||0===n?0:sn(n)},pn=Math.max,hn=Math.min,dn=Math.min,vn=function(t){return(n=t.length)>0?dn(ln(n),9007199254740991):0;var n},yn=function(t){return function(n,e,r){var o,i=L(n),a=vn(i),c=function(t,n){var e=ln(t);return e<0?pn(e+n,0):hn(e,n)}(r,a);if(t&&e!=e){for(;a>c;)if((o=i[c++])!=o)return!0}else for(;a>c;c++)if((t||c in i)&&i[c]===e)return t||c||0;return!t&&-1}},gn={includes:yn(!0),indexOf:yn(!1)}.indexOf,mn=b([].push),bn=function(t,n){var e,r=L(t),o=0,i=[];for(e in r)!ut($t,e)&&ut(r,e)&&mn(i,e);for(;n.length>o;)ut(r,e=n[o++])&&(~gn(i,e)||mn(i,e));return i},wn=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Sn=wn.concat("length","prototype"),An={f:Object.getOwnPropertyNames||function(t){return bn(t,Sn)}},On={f:Object.getOwnPropertySymbols},En=b([].concat),Pn=M("Reflect","ownKeys")||function(t){var n=An.f(Ct(t)),e=On.f;return e?En(n,e(t)):n},Tn=function(t,n,e){for(var r=Pn(n),o=Ut.f,i=Tt.f,a=0;a<r.length;a++){var c=r[a];ut(t,c)||e&&ut(e,c)||o(t,c,i(n,c))}},_n=/#|\.prototype\./,jn=function(t,n){var e=Cn[Ln(t)];return e==In||e!=xn&&(R(n)?a(n):!!n)},Ln=jn.normalize=function(t){return String(t).replace(_n,".").toLowerCase()},Cn=jn.data={},xn=jn.NATIVE="N",In=jn.POLYFILL="P",Rn=jn,Nn=Tt.f,kn=function(t,n){var e,r,o,a,c,u=t.target,f=t.global,s=t.stat;if(e=f?i:s?i[u]||nt(u,{}):(i[u]||{}).prototype)for(r in n){if(a=n[r],o=t.dontCallGetSet?(c=Nn(e,r))&&c.value:e[r],!Rn(f?r:u+(s?".":"#")+r,t.forced)&&void 0!==o){if(typeof a==typeof o)continue;Tn(a,o)}(t.sham||o&&o.sham)&&Dt(a,"sham",!0),cn(e,r,a,t)}},Mn=Object.keys||function(t){return bn(t,wn)},Un=Object.assign,Dn=Object.defineProperty,Hn=b([].concat),Bn=!Un||a((function(){if(c&&1!==Un({b:1},Un(Dn({},"a",{enumerable:!0,get:function(){Dn(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},n={},e=Symbol(),r="abcdefghijklmnopqrst";return t[e]=7,r.split("").forEach((function(t){n[t]=t})),7!=Un({},t)[e]||Mn(Un({},n)).join("")!=r}))?function(t,n){for(var e=at(t),r=arguments.length,o=1,i=On.f,a=d.f;r>o;)for(var u,f=P(arguments[o++]),l=i?Hn(Mn(f),i(f)):Mn(f),p=l.length,h=0;p>h;)u=l[h++],c&&!s(a,f,u)||(e[u]=f[u]);return e}:Un;kn({target:"Object",stat:!0,arity:2,forced:Object.assign!==Bn},{assign:Bn});var Wn,zn=c&&!_t?Object.defineProperties:function(t,n){Ct(t);for(var e,r=L(n),o=Mn(n),i=o.length,a=0;i>a;)Ut.f(t,e=o[a++],r[e]);return t},Fn={f:zn},Gn=M("document","documentElement"),Vn="prototype",Xn="script",qn=Qt("IE_PROTO"),Yn=function(){},Jn=function(t){return"<"+Xn+">"+t+"</"+Xn+">"},Kn=function(t){t.write(Jn("")),t.close();var n=t.parentWindow.Object;return t=null,n},Qn=function(){try{Wn=new ActiveXObject("htmlfile")}catch(t){}var t,n,e;Qn="undefined"!=typeof document?document.domain&&Wn?Kn(Wn):(n=Ot("iframe"),e="java"+Xn+":",n.style.display="none",Gn.appendChild(n),n.src=String(e),(t=n.contentWindow.document).open(),t.write(Jn("document.F=Object")),t.close(),t.F):Kn(Wn);for(var r=wn.length;r--;)delete Qn[Vn][wn[r]];return Qn()};$t[qn]=!0;var $n=Object.create||function(t,n){var e;return null!==t?(Yn[Vn]=Ct(t),e=new Yn,Yn[Vn]=null,e[qn]=t):e=Qn(),void 0===n?e:Fn.f(e,n)},Zn=Ut.f,te=yt("unscopables"),ne=Array.prototype;null==ne[te]&&Zn(ne,te,{configurable:!0,value:$n(null)});var ee,re,oe,ie=function(t){ne[te][t]=!0},ae={},ce=!a((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),ue=Qt("IE_PROTO"),fe=Object,se=fe.prototype,le=ce?fe.getPrototypeOf:function(t){var n=at(t);if(ut(n,ue))return n[ue];var e=n.constructor;return R(e)&&n instanceof e?e.prototype:n instanceof fe?se:null},pe=yt("iterator"),he=!1;[].keys&&("next"in(oe=[].keys())?(re=le(le(oe)))!==Object.prototype&&(ee=re):he=!0);var de=!k(ee)||a((function(){var t={};return ee[pe].call(t)!==t}));de&&(ee={}),R(ee[pe])||cn(ee,pe,(function(){return this}));var ve={IteratorPrototype:ee,BUGGY_SAFARI_ITERATORS:he},ye=Ut.f,ge=yt("toStringTag"),me=function(t,n,e){t&&!e&&(t=t.prototype),t&&!ut(t,ge)&&ye(t,ge,{configurable:!0,value:n})},be=ve.IteratorPrototype,we=function(){return this},Se=String,Ae=TypeError,Oe=Object.setPrototypeOf||("__proto__"in{}?function(){var t,n=!1,e={};try{t=function(t,n,e){try{return b(Q(Object.getOwnPropertyDescriptor(t,n)[e]))}catch(t){}}(Object.prototype,"__proto__","set"),t(e,[]),n=e instanceof Array}catch(t){}return function(e,r){return Ct(e),function(t){if("object"==typeof t||R(t))return t;throw Ae("Can't set "+Se(t)+" as a prototype")}(r),n?t(e,r):e.__proto__=r,e}}():void 0),Ee=zt.PROPER,Pe=zt.CONFIGURABLE,Te=ve.IteratorPrototype,_e=ve.BUGGY_SAFARI_ITERATORS,je=yt("iterator"),Le="keys",Ce="values",xe="entries",Ie=function(){return this},Re=function(t,n,e,r,o,i,a){!function(t,n,e,r){var o=n+" Iterator";t.prototype=$n(be,{next:v(+!r,e)}),me(t,o,!1),ae[o]=we}(e,n,r);var c,u,f,l=function(t){if(t===o&&g)return g;if(!_e&&t in d)return d[t];switch(t){case Le:case Ce:case xe:return function(){return new e(this,t)}}return function(){return new e(this)}},p=n+" Iterator",h=!1,d=t.prototype,y=d[je]||d["@@iterator"]||o&&d[o],g=!_e&&y||l(o),m="Array"==n&&d.entries||y;if(m&&(c=le(m.call(new t)))!==Object.prototype&&c.next&&(le(c)!==Te&&(Oe?Oe(c,Te):R(c[je])||cn(c,je,Ie)),me(c,p,!0)),Ee&&o==Ce&&y&&y.name!==Ce&&(Pe?Dt(d,"name",Ce):(h=!0,g=function(){return s(y,this)})),o)if(u={values:l(Ce),keys:i?g:l(Le),entries:l(xe)},a)for(f in u)(_e||h||!(f in d))&&cn(d,f,u[f]);else kn({target:n,proto:!0,forced:_e||h},u);return d[je]!==g&&cn(d,je,g,{name:o}),ae[n]=g,u},Ne=function(t,n){return{value:t,done:n}},ke=Ut.f,Me="Array Iterator",Ue=on.set,De=on.getterFor(Me),He=Re(Array,"Array",(function(t,n){Ue(this,{type:Me,target:L(t),index:0,kind:n})}),(function(){var t=De(this),n=t.target,e=t.kind,r=t.index++;return!n||r>=n.length?(t.target=void 0,Ne(void 0,!0)):Ne("keys"==e?r:"values"==e?n[r]:[r,n[r]],!1)}),"values"),Be=ae.Arguments=ae.Array;if(ie("keys"),ie("values"),ie("entries"),c&&"values"!==Be.name)try{ke(Be,"name",{value:"values"})}catch(t){}var We={};We[yt("toStringTag")]="z";var ze="[object z]"===String(We),Fe=yt("toStringTag"),Ge=Object,Ve="Arguments"==A(function(){return arguments}()),Xe=ze?A:function(t){var n,e,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=function(t,n){try{return t[n]}catch(t){}}(n=Ge(t),Fe))?e:Ve?A(n):"Object"==(r=A(n))&&R(n.callee)?"Arguments":r},qe=ze?{}.toString:function(){return"[object "+Xe(this)+"]"};ze||cn(Object.prototype,"toString",qe,{unsafe:!0});var Ye="undefined"!=typeof process&&"process"==A(process),Je=yt("species"),Ke=TypeError,Qe=function(){},$e=[],Ze=M("Reflect","construct"),tr=/^\s*(?:class|function)\b/,nr=b(tr.exec),er=!tr.exec(Qe),rr=function(t){if(!R(t))return!1;try{return Ze(Qe,$e,t),!0}catch(t){return!1}},or=function(t){if(!R(t))return!1;switch(Xe(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return er||!!nr(tr,qt(t))}catch(t){return!0}};or.sham=!0;var ir,ar,cr,ur,fr=!Ze||a((function(){var t;return rr(rr.call)||!rr(Object)||!rr((function(){t=!0}))||t}))?or:rr,sr=TypeError,lr=yt("species"),pr=function(t,n){var e,r=Ct(t).constructor;return void 0===r||T(e=Ct(r)[lr])?n:function(t){if(fr(t))return t;throw sr(J(t)+" is not a constructor")}(e)},hr=Function.prototype,dr=hr.apply,vr=hr.call,yr="object"==typeof Reflect&&Reflect.apply||(u?vr.bind(dr):function(){return vr.apply(dr,arguments)}),gr=function(t){if("Function"===A(t))return b(t)},mr=gr(gr.bind),br=function(t,n){return Q(t),void 0===n?t:u?mr(t,n):function(){return t.apply(n,arguments)}},wr=b([].slice),Sr=TypeError,Ar=/(?:ipad|iphone|ipod).*applewebkit/i.test(D),Or=i.setImmediate,Er=i.clearImmediate,Pr=i.process,Tr=i.Dispatch,_r=i.Function,jr=i.MessageChannel,Lr=i.String,Cr=0,xr={},Ir="onreadystatechange";a((function(){ir=i.location}));var Rr=function(t){if(ut(xr,t)){var n=xr[t];delete xr[t],n()}},Nr=function(t){return function(){Rr(t)}},kr=function(t){Rr(t.data)},Mr=function(t){i.postMessage(Lr(t),ir.protocol+"//"+ir.host)};Or&&Er||(Or=function(t){!function(t,n){if(t<n)throw Sr("Not enough arguments")}(arguments.length,1);var n=R(t)?t:_r(t),e=wr(arguments,1);return xr[++Cr]=function(){yr(n,void 0,e)},ar(Cr),Cr},Er=function(t){delete xr[t]},Ye?ar=function(t){Pr.nextTick(Nr(t))}:Tr&&Tr.now?ar=function(t){Tr.now(Nr(t))}:jr&&!Ar?(ur=(cr=new jr).port2,cr.port1.onmessage=kr,ar=br(ur.postMessage,ur)):i.addEventListener&&R(i.postMessage)&&!i.importScripts&&ir&&"file:"!==ir.protocol&&!a(Mr)?(ar=Mr,i.addEventListener("message",kr,!1)):ar=Ir in Ot("script")?function(t){Gn.appendChild(Ot("script"))[Ir]=function(){Gn.removeChild(this),Rr(t)}}:function(t){setTimeout(Nr(t),0)});var Ur={set:Or,clear:Er},Dr=function(){this.head=null,this.tail=null};Dr.prototype={add:function(t){var n={item:t,next:null},e=this.tail;e?e.next=n:this.head=n,this.tail=n},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}};var Hr,Br,Wr,zr,Fr,Gr=Dr,Vr=/ipad|iphone|ipod/i.test(D)&&"undefined"!=typeof Pebble,Xr=/web0s(?!.*chrome)/i.test(D),qr=Tt.f,Yr=Ur.set,Jr=i.MutationObserver||i.WebKitMutationObserver,Kr=i.document,Qr=i.process,$r=i.Promise,Zr=qr(i,"queueMicrotask"),to=Zr&&Zr.value;if(!to){var no=new Gr,eo=function(){var t,n;for(Ye&&(t=Qr.domain)&&t.exit();n=no.get();)try{n()}catch(t){throw no.head&&Hr(),t}t&&t.enter()};Ar||Ye||Xr||!Jr||!Kr?!Vr&&$r&&$r.resolve?((zr=$r.resolve(void 0)).constructor=$r,Fr=br(zr.then,zr),Hr=function(){Fr(eo)}):Ye?Hr=function(){Qr.nextTick(eo)}:(Yr=br(Yr,i),Hr=function(){Yr(eo)}):(Br=!0,Wr=Kr.createTextNode(""),new Jr(eo).observe(Wr,{characterData:!0}),Hr=function(){Wr.data=Br=!Br}),to=function(t){no.head||Hr(),no.add(t)}}var ro=to,oo=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},io=i.Promise,ao="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,co=!ao&&!Ye&&"object"==typeof window&&"object"==typeof document;io&&io.prototype;var uo,fo,so,lo,po,ho,vo,yo=yt("species"),go=!1,mo=R(i.PromiseRejectionEvent),bo=Rn("Promise",(function(){var t=qt(io),n=t!==String(io);if(!n&&66===F)return!0;if(!F||F<51||!/native code/.test(t)){var e=new io((function(t){t(1)})),r=function(t){t((function(){}),(function(){}))};if((e.constructor={})[yo]=r,!(go=e.then((function(){}))instanceof r))return!0}return!n&&(co||ao)&&!mo})),wo={CONSTRUCTOR:bo,REJECTION_EVENT:mo,SUBCLASSING:go},So=TypeError,Ao=function(t){var n,e;this.promise=new t((function(t,r){if(void 0!==n||void 0!==e)throw So("Bad Promise constructor");n=t,e=r})),this.resolve=Q(n),this.reject=Q(e)},Oo={f:function(t){return new Ao(t)}},Eo=Ur.set,Po="Promise",To=wo.CONSTRUCTOR,_o=wo.REJECTION_EVENT,jo=wo.SUBCLASSING,Lo=on.getterFor(Po),Co=on.set,xo=io&&io.prototype,Io=io,Ro=xo,No=i.TypeError,ko=i.document,Mo=i.process,Uo=Oo.f,Do=Uo,Ho=!!(ko&&ko.createEvent&&i.dispatchEvent),Bo="unhandledrejection",Wo=function(t){var n;return!(!k(t)||!R(n=t.then))&&n},zo=function(t,n){var e,r,o,i=n.value,a=1==n.state,c=a?t.ok:t.fail,u=t.resolve,f=t.reject,l=t.domain;try{c?(a||(2===n.rejection&&qo(n),n.rejection=1),!0===c?e=i:(l&&l.enter(),e=c(i),l&&(l.exit(),o=!0)),e===t.promise?f(No("Promise-chain cycle")):(r=Wo(e))?s(r,e,u,f):u(e)):f(i)}catch(t){l&&!o&&l.exit(),f(t)}},Fo=function(t,n){t.notified||(t.notified=!0,ro((function(){for(var e,r=t.reactions;e=r.get();)zo(e,t);t.notified=!1,n&&!t.rejection&&Vo(t)})))},Go=function(t,n,e){var r,o;Ho?((r=ko.createEvent("Event")).promise=n,r.reason=e,r.initEvent(t,!1,!0),i.dispatchEvent(r)):r={promise:n,reason:e},!_o&&(o=i["on"+t])?o(r):t===Bo&&function(t,n){try{1==arguments.length?console.error(t):console.error(t,n)}catch(t){}}("Unhandled promise rejection",e)},Vo=function(t){s(Eo,i,(function(){var n,e=t.facade,r=t.value;if(Xo(t)&&(n=oo((function(){Ye?Mo.emit("unhandledRejection",r,e):Go(Bo,e,r)})),t.rejection=Ye||Xo(t)?2:1,n.error))throw n.value}))},Xo=function(t){return 1!==t.rejection&&!t.parent},qo=function(t){s(Eo,i,(function(){var n=t.facade;Ye?Mo.emit("rejectionHandled",n):Go("rejectionhandled",n,t.value)}))},Yo=function(t,n,e){return function(r){t(n,r,e)}},Jo=function(t,n,e){t.done||(t.done=!0,e&&(t=e),t.value=n,t.state=2,Fo(t,!0))},Ko=function(t,n,e){if(!t.done){t.done=!0,e&&(t=e);try{if(t.facade===n)throw No("Promise can't be resolved itself");var r=Wo(n);r?ro((function(){var e={done:!1};try{s(r,n,Yo(Ko,e,t),Yo(Jo,e,t))}catch(n){Jo(e,n,t)}})):(t.value=n,t.state=1,Fo(t,!1))}catch(n){Jo({done:!1},n,t)}}};if(To&&(Ro=(Io=function(t){!function(t,n){if(U(n,t))return t;throw Ke("Incorrect invocation")}(this,Ro),Q(t),s(uo,this);var n=Lo(this);try{t(Yo(Ko,n),Yo(Jo,n))}catch(t){Jo(n,t)}}).prototype,(uo=function(t){Co(this,{type:Po,done:!1,notified:!1,parent:!1,reactions:new Gr,rejection:!1,state:0,value:void 0})}).prototype=cn(Ro,"then",(function(t,n){var e=Lo(this),r=Uo(pr(this,Io));return e.parent=!0,r.ok=!R(t)||t,r.fail=R(n)&&n,r.domain=Ye?Mo.domain:void 0,0==e.state?e.reactions.add(r):ro((function(){zo(r,e)})),r.promise})),fo=function(){var t=new uo,n=Lo(t);this.promise=t,this.resolve=Yo(Ko,n),this.reject=Yo(Jo,n)},Oo.f=Uo=function(t){return t===Io||undefined===t?new fo(t):Do(t)},R(io)&&xo!==Object.prototype)){so=xo.then,jo||cn(xo,"then",(function(t,n){var e=this;return new Io((function(t,n){s(so,e,t,n)})).then(t,n)}),{unsafe:!0});try{delete xo.constructor}catch(t){}Oe&&Oe(xo,Ro)}kn({global:!0,constructor:!0,wrap:!0,forced:To},{Promise:Io}),me(Io,Po,!1),vo=M(Po),c&&vo&&!vo[Je]&&(lo=vo,po=Je,(ho={configurable:!0,get:function(){return this}}).get&&an(ho.get,po,{getter:!0}),ho.set&&an(ho.set,po,{setter:!0}),Ut.f(lo,po,ho));var Qo=yt("iterator"),$o=Array.prototype,Zo=yt("iterator"),ti=function(t){if(!T(t))return $(t,Zo)||$(t,"@@iterator")||ae[Xe(t)]},ni=TypeError,ei=function(t,n,e){var r,o;Ct(t);try{if(!(r=$(t,"return"))){if("throw"===n)throw e;return e}r=s(r,t)}catch(t){o=!0,r=t}if("throw"===n)throw e;if(o)throw r;return Ct(r),e},ri=TypeError,oi=function(t,n){this.stopped=t,this.result=n},ii=oi.prototype,ai=function(t,n,e){var r,o,i,a,c,u,f,l,p=e&&e.that,h=!(!e||!e.AS_ENTRIES),d=!(!e||!e.IS_RECORD),v=!(!e||!e.IS_ITERATOR),y=!(!e||!e.INTERRUPTED),g=br(n,p),m=function(t){return r&&ei(r,"normal",t),new oi(!0,t)},b=function(t){return h?(Ct(t),y?g(t[0],t[1],m):g(t[0],t[1])):y?g(t,m):g(t)};if(d)r=t.iterator;else if(v)r=t;else{if(!(o=ti(t)))throw ri(J(t)+" is not iterable");if(void 0!==(l=o)&&(ae.Array===l||$o[Qo]===l)){for(i=0,a=vn(t);a>i;i++)if((c=b(t[i]))&&U(ii,c))return c;return new oi(!1)}r=function(t,n){var e=arguments.length<2?ti(t):n;if(Q(e))return Ct(s(e,t));throw ni(J(t)+" is not iterable")}(t,o)}for(u=d?t.next:r.next;!(f=s(u,r)).done;){try{c=b(f.value)}catch(t){ei(r,"throw",t)}if("object"==typeof c&&c&&U(ii,c))return c}return new oi(!1)},ci=yt("iterator"),ui=!1;try{var fi=0,si={next:function(){return{done:!!fi++}},return:function(){ui=!0}};si[ci]=function(){return this},Array.from(si,(function(){throw 2}))}catch(t){}var li=wo.CONSTRUCTOR||!function(t,n){if(!n&&!ui)return!1;var e=!1;try{var r={};r[ci]=function(){return{next:function(){return{done:e=!0}}}},t(r)}catch(t){}return e}((function(t){io.all(t).then(void 0,(function(){}))}));kn({target:"Promise",stat:!0,forced:li},{all:function(t){var n=this,e=Oo.f(n),r=e.resolve,o=e.reject,i=oo((function(){var e=Q(n.resolve),i=[],a=0,c=1;ai(t,(function(t){var u=a++,f=!1;c++,s(e,n,t).then((function(t){f||(f=!0,i[u]=t,--c||r(i))}),o)})),--c||r(i)}));return i.error&&o(i.value),e.promise}});var pi=wo.CONSTRUCTOR,hi=io&&io.prototype;if(kn({target:"Promise",proto:!0,forced:pi,real:!0},{catch:function(t){return this.then(void 0,t)}}),R(io)){var di=M("Promise").prototype.catch;hi.catch!==di&&cn(hi,"catch",di,{unsafe:!0})}kn({target:"Promise",stat:!0,forced:li},{race:function(t){var n=this,e=Oo.f(n),r=e.reject,o=oo((function(){var o=Q(n.resolve);ai(t,(function(t){s(o,n,t).then(e.resolve,r)}))}));return o.error&&r(o.value),e.promise}}),kn({target:"Promise",stat:!0,forced:wo.CONSTRUCTOR},{reject:function(t){var n=Oo.f(this);return s(n.reject,void 0,t),n.promise}});var vi=wo.CONSTRUCTOR;M("Promise"),kn({target:"Promise",stat:!0,forced:vi},{resolve:function(t){return function(t,n){if(Ct(t),k(n)&&n.constructor===t)return n;var e=Oo.f(t);return(0,e.resolve)(n),e.promise}(this,t)}});var yi=String,gi=function(t){if("Symbol"===Xe(t))throw TypeError("Cannot convert a Symbol value to a string");return yi(t)},mi=b("".charAt),bi=b("".charCodeAt),wi=b("".slice),Si=function(t){return function(n,e){var r,o,i=gi(j(n)),a=ln(e),c=i.length;return a<0||a>=c?t?"":void 0:(r=bi(i,a))<55296||r>56319||a+1===c||(o=bi(i,a+1))<56320||o>57343?t?mi(i,a):r:t?wi(i,a,a+2):o-56320+(r-55296<<10)+65536}},Ai={codeAt:Si(!1),charAt:Si(!0)}.charAt,Oi="String Iterator",Ei=on.set,Pi=on.getterFor(Oi);Re(String,"String",(function(t){Ei(this,{type:Oi,string:gi(t),index:0})}),(function(){var t,n=Pi(this),e=n.string,r=n.index;return r>=e.length?Ne(void 0,!0):(t=Ai(e,r),n.index+=t.length,Ne(t,!1))}));var Ti={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},_i=Ot("span").classList,ji=_i&&_i.constructor&&_i.constructor.prototype,Li=ji===Object.prototype?void 0:ji,Ci=yt("iterator"),xi=yt("toStringTag"),Ii=He.values,Ri=function(t,n){if(t){if(t[Ci]!==Ii)try{Dt(t,Ci,Ii)}catch(n){t[Ci]=Ii}if(t[xi]||Dt(t,xi,n),Ti[n])for(var e in He)if(t[e]!==He[e])try{Dt(t,e,He[e])}catch(n){t[e]=He[e]}}};for(var Ni in Ti)Ri(i[Ni]&&i[Ni].prototype,Ni);Ri(Li,"DOMTokenList");var ki,Mi=Array.isArray||function(t){return"Array"==A(t)},Ui=TypeError,Di=function(t){if(t>9007199254740991)throw Ui("Maximum allowed index exceeded");return t},Hi=function(t,n,e){var r=wt(n);r in t?Ut.f(t,r,v(0,e)):t[r]=e},Bi=yt("species"),Wi=Array,zi=function(t,n){return new(function(t){var n;return Mi(t)&&(n=t.constructor,(fr(n)&&(n===Wi||Mi(n.prototype))||k(n)&&null===(n=n[Bi]))&&(n=void 0)),void 0===n?Wi:n}(t))(0===n?0:n)},Fi=yt("species"),Gi=yt("isConcatSpreadable"),Vi=F>=51||!a((function(){var t=[];return t[Gi]=!1,t.concat()[0]!==t})),Xi=function(t){if(!k(t))return!1;var n=t[Gi];return void 0!==n?!!n:Mi(t)},qi=!(Vi&&(ki="concat",F>=51||!a((function(){var t=[];return(t.constructor={})[Fi]=function(){return{foo:1}},1!==t[ki](Boolean).foo}))));kn({target:"Array",proto:!0,arity:1,forced:qi},{concat:function(t){var n,e,r,o,i,a=at(this),c=zi(a,0),u=0;for(n=-1,r=arguments.length;n<r;n++)if(Xi(i=-1===n?a:arguments[n]))for(o=vn(i),Di(u+o),e=0;e<o;e++,u++)e in i&&Hi(c,u,i[e]);else Di(u+1),Hi(c,u++,i);return c.length=u,c}});var Yi=function(){return Yi=Object.assign||function(t){for(var n,e=1,r=arguments.length;e<r;e++)for(var o in n=arguments[e])Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);return t},Yi.apply(this,arguments)},Ji={weixinJsSdkTicket:"",launchContainerQuery:".mazey-launch-app-selector",launchShowWeixinToBrowserImgUrl:"",canShowWeixinToBrowser:!1,extInfo:"",wexinServiceAccountAppId:"",openPlatformMobileAppId:"",genTagPrefixStr:"mazey-launch-app-btn-prefix-",launchShowWeixinToBrowserClassName:"mazey-launch-app-wx-to-browser",launchBtnClassName:"mazey-launch-app-inner-btn",launchBtnStyle:"",launchBtnText:"Launch App ;-)",launchErrorLink:"",canContinuousUpdating:!1,onMenuShareTimelineOptions:void 0,onMenuShareAppMessageOptions:void 0,isConClosed:!0,isWxDebug:!1,canLaunchApp:function(){return!0},launchBtnClick:function(){},launchReady:function(){}},Ki=function(t){void 0===t&&(t=Ji);var n=Object.assign(Ji,t),e=n.weixinJsSdkTicket,r=n.launchContainerQuery,o=n.genTagPrefixStr,i=n.launchShowWeixinToBrowserImgUrl,a=n.canShowWeixinToBrowser,c=n.launchShowWeixinToBrowserClassName,u=n.launchBtnClassName,f=n.launchBtnStyle,s=n.launchBtnText,l=n.launchErrorLink,p=n.wexinServiceAccountAppId,h=n.openPlatformMobileAppId,d=n.canContinuousUpdating,v=n.onMenuShareTimelineOptions,y=n.onMenuShareAppMessageOptions,g=n.isConClosed,m=n.isWxDebug,b=n.canLaunchApp,w=n.launchBtnClick,S=n.launchReady,A=n.extInfo,O=window.mazey,E=window.sha1,P=window.wx,T=window.$||window.jQuery;O&&E&&P&&T||console.error("Launch App: wx or sha1 or $ or mazey is not found");var _=function(){},j=O.genCustomConsole("LaunchCon:",{isClosed:g});j.log("Launch App");var L={title:"",link:"",imgUrl:"",success:function(){},cancel:function(){}},C={title:"",desc:"",link:"",imgUrl:"",type:"",dataUrl:"",success:function(){},cancel:function(){}},x={title:document.title,link:location.href};function I(){O.addStyle("\n .mazey-launch-app-mask {\n position: fixed;\n top: 0; right: 0; bottom: 0; left: 0;\n background-color: rgba(0, 0, 0, .5);\n text-align: right;\n font-size: 0;\n white-space: nowrap;\n overflow: auto;\n z-index: 999;\n }\n .mazey-launch-app-img {\n display: inline-block;\n vertical-align: middle;\n text-align: left;\n font-size: 14px;\n white-space: normal;\n width: 50vw;\n margin: 0.5rem 0.5rem 0 0;\n }\n .mazey-launch-app-img:after {\n content: '';\n display: inline-block;\n height: 100%;\n vertical-align: middle;\n }\n ",{id:"mazey-launch-app-mask-style"}),window.LAUNCH_APP_HIDE_WEIXIN_BROWSER||(window.LAUNCH_APP_HIDE_WEIXIN_BROWSER=function(){T(".mazey-launch-app-mask").hide()}),0===T(".mazey-launch-app-mask").length?T("body").append("<div class='mazey-launch-app-mask' onclick='window.LAUNCH_APP_HIDE_WEIXIN_BROWSER()'>"+"<img\n class='mazey-launch-app-img ".concat(c,"'\n src='").concat(i,"'\n alt='Launch App'\n />")+"</div>"):T(".mazey-launch-app-mask").show()}function R(){j.log("renderWeixinLaunchTemplate"),function(t,n){void 0===t&&(t=""),void 0===n&&(n=""),j.log("renderWXOpenLaunchApp"),Promise.all([Promise.resolve(e||window.LAUNCH_APP_WEIXIN_JS_SDK_TICKET),Promise.resolve(E)]).then((function(e){j.log("allRes",e);var i=e[0],c=e[1],p=O.generateRndNum(7),h=i,d=(new Date).getTime(),g=c("jsapi_ticket="+h+"&noncestr="+p+"×tamp="+d+"&url="+location.href);return P.config({debug:m,appId:t,timestamp:d,nonceStr:p,signature:g,jsApiList:["showOptionMenu","onMenuShareTimeline","onMenuShareAppMessage"],openTagList:["wx-open-launch-app"]}),P.ready((function(){v&&(j.log("onMenuShareTimelineOptions",v),P.onMenuShareTimeline(v)),window.LAUNCH_APP_SHARE_TIMELINE=function(t){t=Yi(Yi({},L),t),j.log("window LAUNCH_APP_SHARE_TIMELINE",t),P.onMenuShareTimeline(t)},y&&(j.log("onMenuShareAppMessageOptions",y),P.onMenuShareAppMessage(y)),window.LAUNCH_APP_SHARE_APP_MESSAGE=function(t){t=Yi(Yi({},C),t),j.log("window LAUNCH_APP_SHARE_APP_MESSAGE",t),P.onMenuShareAppMessage(t)},window.LAUNCH_APP_READY=!0,S&&S();var t=function(){var t=T(r);j.log("containers",r,t,t.length),t.length>0&&t.each((function(t,e){var r=T(e).attr("data-launch-app-key");if(!r){var i=T(e).parents("[data-launch-app-key]:eq(0)");i.length>0&&(r=i.attr("data-launch-app-key"),j.log("keyEle",i,r))}r||(r=t);var c="mazey-launch-app-tag-".concat(r),p=T(".".concat(c," wx-open-launch-app")),h=T(e).attr("data-launch-app-ext-info");if(!h){var d=T(e).parents("[data-launch-app-ext-info]:eq(0)");d.length>0&&(h=d.attr("data-launch-app-ext-info"),j.log("eleExtInfoEle parents",d,h))}h&&(A=h);var v=T(e).attr("data-launch-app-error-link");if(!v){var y=T(e).parents("[data-launch-app-error-link]:eq(0)");y.length>0&&(v=y.attr("data-launch-app-error-link"),j.log("eleErrorLinkEle parents",y,v))}var g=l;v&&(g=v),0===p.length&&(T(e).addClass(c),j.log("success:",c),function(t){var e=o,r=e+t,i="<style>.".concat(u," {")+"opacity: 0;width: 100%;height: 100%;backgroud: transparent;color: #300f54;border: none;box-sizing: border-box;text-align: center;vertical-align: middle;"+f+"}</style>"+'<button class="'.concat(u,'">')+s+"</button>",c="<wx-open-launch-app id='"+r+"' appid='"+n+"' extinfo='".concat(A)+"' style='z-index: 99; position: absolute; width: 100%; height: 100%; opacity: 1; background: transparent; overflow: hidden; left: 0;'><script type='text/wxtag-template'>"+i+"<\/script></wx-open-launch-app>";T("."+t+":eq(0)").append(c);var l=document.getElementById(r);l&&(l.addEventListener("ready",(function(t){j.log("ready event",t)})),l.addEventListener("launch",(function(t){j.log("launch event",t),t.detail&&t.detail.extInfo&&j.log("launch extInfo",t.detail.extInfo)})),l.addEventListener("error",(function(t){j.error(t.detail),T("[id^='"+e+"']").hide(),a&&I(),g&&(j.log("realErrorLink",g),location.href=g)})),l.addEventListener("click",(function(t){j.log("click event",t),w&&w()})))}(c))}))};t(),_=t})),P.error((function(t){j.error(t)})),"success:launch_app"})).catch((function(t){j.error(t)}))}(p,h)}function N(t){j.log("appUpdated",t),!window.LAUNCH_APP_LOAD&&b(t)&&(R(),window.LAUNCH_APP_LOAD=!0),d&&window.LAUNCH_APP_LOAD&&b(t)&&_()}function k(){j.log("appBeforeDestroy",k),window.LAUNCH_APP_LOAD=null,window.LAUNCH_APP_HIDE_WEIXIN_BROWSER=null}return L=Yi(Yi({},L),x),C=Yi(Yi({},C),x),window.LAUNCH_APP_UPDATE=N,window.LAUNCH_APP_BEFORE_DESTROY=k,window.LAUNCH_APP_SHOW_WEIXIN_TO_BROWSER=I,{LAUNCH_APP_UPDATE:N,LAUNCH_APP_BEFORE_DESTROY:k,LAUNCH_APP_SHOW_WEIXIN_TO_BROWSER:I,LAUNCH_APP_SHARE_TIMELINE:function(t){j.log("opt",t)},LAUNCH_APP_SHARE_APP_MESSAGE:function(t){j.log("opt",t)},start:N,update:N,destroy:k}};export{Ki as default};
|
|
6
|
+
var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(t,n){return t(n={exports:{}},n.exports),n.exports}var e,r,o=function(t){return t&&t.Math==Math&&t},i=o("object"==typeof globalThis&&globalThis)||o("object"==typeof window&&window)||o("object"==typeof self&&self)||o("object"==typeof t&&t)||function(){return this}()||Function("return this")(),a=function(t){try{return!!t()}catch(t){return!0}},c=!a((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),u=!a((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),f=Function.prototype.call,s=u?f.bind(f):function(){return f.apply(f,arguments)},l={}.propertyIsEnumerable,p=Object.getOwnPropertyDescriptor,h=p&&!l.call({1:2},1)?function(t){var n=p(this,t);return!!n&&n.enumerable}:l,d={f:h},v=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}},y=Function.prototype,g=y.call,m=u&&y.bind.bind(g,g),b=u?m:function(t){return function(){return g.apply(t,arguments)}},w=b({}.toString),S=b("".slice),A=function(t){return S(w(t),8,-1)},O=Object,E=b("".split),P=a((function(){return!O("z").propertyIsEnumerable(0)}))?function(t){return"String"==A(t)?E(t,""):O(t)}:O,T=function(t){return null==t},_=TypeError,L=function(t){if(T(t))throw _("Can't call method on "+t);return t},j=function(t){return P(L(t))},C="object"==typeof document&&document.all,x={all:C,IS_HTMLDDA:void 0===C&&void 0!==C},I=x.all,R=x.IS_HTMLDDA?function(t){return"function"==typeof t||t===I}:function(t){return"function"==typeof t},k=x.all,N=x.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:R(t)||t===k}:function(t){return"object"==typeof t?null!==t:R(t)},M=function(t,n){return arguments.length<2?(e=i[t],R(e)?e:void 0):i[t]&&i[t][n];var e},U=b({}.isPrototypeOf),D="undefined"!=typeof navigator&&String(navigator.userAgent)||"",H=i.process,B=i.Deno,W=H&&H.versions||B&&B.version,z=W&&W.v8;z&&(r=(e=z.split("."))[0]>0&&e[0]<4?1:+(e[0]+e[1])),!r&&D&&(!(e=D.match(/Edge\/(\d+)/))||e[1]>=74)&&(e=D.match(/Chrome\/(\d+)/))&&(r=+e[1]);var F=r,G=!!Object.getOwnPropertySymbols&&!a((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&F&&F<41})),V=G&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,X=Object,q=V?function(t){return"symbol"==typeof t}:function(t){var n=M("Symbol");return R(n)&&U(n.prototype,X(t))},Y=String,J=function(t){try{return Y(t)}catch(t){return"Object"}},K=TypeError,Q=function(t){if(R(t))return t;throw K(J(t)+" is not a function")},$=function(t,n){var e=t[n];return T(e)?void 0:Q(e)},Z=TypeError,tt=Object.defineProperty,nt=function(t,n){try{tt(i,t,{value:n,configurable:!0,writable:!0})}catch(e){i[t]=n}return n},et="__core-js_shared__",rt=i[et]||nt(et,{}),ot=n((function(t){(t.exports=function(t,n){return rt[t]||(rt[t]=void 0!==n?n:{})})("versions",[]).push({version:"3.30.1",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.30.1/LICENSE",source:"https://github.com/zloirock/core-js"})})),it=Object,at=function(t){return it(L(t))},ct=b({}.hasOwnProperty),ut=Object.hasOwn||function(t,n){return ct(at(t),n)},ft=0,st=Math.random(),lt=b(1..toString),pt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+lt(++ft+st,36)},ht=i.Symbol,dt=ot("wks"),vt=V?ht.for||ht:ht&&ht.withoutSetter||pt,yt=function(t){return ut(dt,t)||(dt[t]=G&&ut(ht,t)?ht[t]:vt("Symbol."+t)),dt[t]},gt=TypeError,mt=yt("toPrimitive"),bt=function(t,n){if(!N(t)||q(t))return t;var e,r=$(t,mt);if(r){if(void 0===n&&(n="default"),e=s(r,t,n),!N(e)||q(e))return e;throw gt("Can't convert object to primitive value")}return void 0===n&&(n="number"),function(t,n){var e,r;if("string"===n&&R(e=t.toString)&&!N(r=s(e,t)))return r;if(R(e=t.valueOf)&&!N(r=s(e,t)))return r;if("string"!==n&&R(e=t.toString)&&!N(r=s(e,t)))return r;throw Z("Can't convert object to primitive value")}(t,n)},wt=function(t){var n=bt(t,"string");return q(n)?n:n+""},St=i.document,At=N(St)&&N(St.createElement),Ot=function(t){return At?St.createElement(t):{}},Et=!c&&!a((function(){return 7!=Object.defineProperty(Ot("div"),"a",{get:function(){return 7}}).a})),Pt=Object.getOwnPropertyDescriptor,Tt={f:c?Pt:function(t,n){if(t=j(t),n=wt(n),Et)try{return Pt(t,n)}catch(t){}if(ut(t,n))return v(!s(d.f,t,n),t[n])}},_t=c&&a((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Lt=String,jt=TypeError,Ct=function(t){if(N(t))return t;throw jt(Lt(t)+" is not an object")},xt=TypeError,It=Object.defineProperty,Rt=Object.getOwnPropertyDescriptor,kt="enumerable",Nt="configurable",Mt="writable",Ut={f:c?_t?function(t,n,e){if(Ct(t),n=wt(n),Ct(e),"function"==typeof t&&"prototype"===n&&"value"in e&&Mt in e&&!e[Mt]){var r=Rt(t,n);r&&r[Mt]&&(t[n]=e.value,e={configurable:Nt in e?e[Nt]:r[Nt],enumerable:kt in e?e[kt]:r[kt],writable:!1})}return It(t,n,e)}:It:function(t,n,e){if(Ct(t),n=wt(n),Ct(e),Et)try{return It(t,n,e)}catch(t){}if("get"in e||"set"in e)throw xt("Accessors not supported");return"value"in e&&(t[n]=e.value),t}},Dt=c?function(t,n,e){return Ut.f(t,n,v(1,e))}:function(t,n,e){return t[n]=e,t},Ht=Function.prototype,Bt=c&&Object.getOwnPropertyDescriptor,Wt=ut(Ht,"name"),zt={EXISTS:Wt,PROPER:Wt&&"something"===function(){}.name,CONFIGURABLE:Wt&&(!c||c&&Bt(Ht,"name").configurable)},Ft=b(Function.toString);R(rt.inspectSource)||(rt.inspectSource=function(t){return Ft(t)});var Gt,Vt,Xt,qt=rt.inspectSource,Yt=i.WeakMap,Jt=R(Yt)&&/native code/.test(String(Yt)),Kt=ot("keys"),Qt=function(t){return Kt[t]||(Kt[t]=pt(t))},$t={},Zt="Object already initialized",tn=i.TypeError,nn=i.WeakMap;if(Jt||rt.state){var en=rt.state||(rt.state=new nn);en.get=en.get,en.has=en.has,en.set=en.set,Gt=function(t,n){if(en.has(t))throw tn(Zt);return n.facade=t,en.set(t,n),n},Vt=function(t){return en.get(t)||{}},Xt=function(t){return en.has(t)}}else{var rn=Qt("state");$t[rn]=!0,Gt=function(t,n){if(ut(t,rn))throw tn(Zt);return n.facade=t,Dt(t,rn,n),n},Vt=function(t){return ut(t,rn)?t[rn]:{}},Xt=function(t){return ut(t,rn)}}var on={set:Gt,get:Vt,has:Xt,enforce:function(t){return Xt(t)?Vt(t):Gt(t,{})},getterFor:function(t){return function(n){var e;if(!N(n)||(e=Vt(n)).type!==t)throw tn("Incompatible receiver, "+t+" required");return e}}},an=n((function(t){var n=zt.CONFIGURABLE,e=on.enforce,r=on.get,o=String,i=Object.defineProperty,u=b("".slice),f=b("".replace),s=b([].join),l=c&&!a((function(){return 8!==i((function(){}),"length",{value:8}).length})),p=String(String).split("String"),h=t.exports=function(t,r,a){"Symbol("===u(o(r),0,7)&&(r="["+f(o(r),/^Symbol\(([^)]*)\)/,"$1")+"]"),a&&a.getter&&(r="get "+r),a&&a.setter&&(r="set "+r),(!ut(t,"name")||n&&t.name!==r)&&(c?i(t,"name",{value:r,configurable:!0}):t.name=r),l&&a&&ut(a,"arity")&&t.length!==a.arity&&i(t,"length",{value:a.arity});try{a&&ut(a,"constructor")&&a.constructor?c&&i(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var h=e(t);return ut(h,"source")||(h.source=s(p,"string"==typeof r?r:"")),t};Function.prototype.toString=h((function(){return R(this)&&r(this).source||qt(this)}),"toString")})),cn=function(t,n,e,r){r||(r={});var o=r.enumerable,i=void 0!==r.name?r.name:n;if(R(e)&&an(e,i,r),r.global)o?t[n]=e:nt(n,e);else{try{r.unsafe?t[n]&&(o=!0):delete t[n]}catch(t){}o?t[n]=e:Ut.f(t,n,{value:e,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return t},un=Math.ceil,fn=Math.floor,sn=Math.trunc||function(t){var n=+t;return(n>0?fn:un)(n)},ln=function(t){var n=+t;return n!=n||0===n?0:sn(n)},pn=Math.max,hn=Math.min,dn=Math.min,vn=function(t){return(n=t.length)>0?dn(ln(n),9007199254740991):0;var n},yn=function(t){return function(n,e,r){var o,i=j(n),a=vn(i),c=function(t,n){var e=ln(t);return e<0?pn(e+n,0):hn(e,n)}(r,a);if(t&&e!=e){for(;a>c;)if((o=i[c++])!=o)return!0}else for(;a>c;c++)if((t||c in i)&&i[c]===e)return t||c||0;return!t&&-1}},gn={includes:yn(!0),indexOf:yn(!1)}.indexOf,mn=b([].push),bn=function(t,n){var e,r=j(t),o=0,i=[];for(e in r)!ut($t,e)&&ut(r,e)&&mn(i,e);for(;n.length>o;)ut(r,e=n[o++])&&(~gn(i,e)||mn(i,e));return i},wn=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Sn=wn.concat("length","prototype"),An={f:Object.getOwnPropertyNames||function(t){return bn(t,Sn)}},On={f:Object.getOwnPropertySymbols},En=b([].concat),Pn=M("Reflect","ownKeys")||function(t){var n=An.f(Ct(t)),e=On.f;return e?En(n,e(t)):n},Tn=function(t,n,e){for(var r=Pn(n),o=Ut.f,i=Tt.f,a=0;a<r.length;a++){var c=r[a];ut(t,c)||e&&ut(e,c)||o(t,c,i(n,c))}},_n=/#|\.prototype\./,Ln=function(t,n){var e=Cn[jn(t)];return e==In||e!=xn&&(R(n)?a(n):!!n)},jn=Ln.normalize=function(t){return String(t).replace(_n,".").toLowerCase()},Cn=Ln.data={},xn=Ln.NATIVE="N",In=Ln.POLYFILL="P",Rn=Ln,kn=Tt.f,Nn=function(t,n){var e,r,o,a,c,u=t.target,f=t.global,s=t.stat;if(e=f?i:s?i[u]||nt(u,{}):(i[u]||{}).prototype)for(r in n){if(a=n[r],o=t.dontCallGetSet?(c=kn(e,r))&&c.value:e[r],!Rn(f?r:u+(s?".":"#")+r,t.forced)&&void 0!==o){if(typeof a==typeof o)continue;Tn(a,o)}(t.sham||o&&o.sham)&&Dt(a,"sham",!0),cn(e,r,a,t)}},Mn=Object.keys||function(t){return bn(t,wn)},Un=Object.assign,Dn=Object.defineProperty,Hn=b([].concat),Bn=!Un||a((function(){if(c&&1!==Un({b:1},Un(Dn({},"a",{enumerable:!0,get:function(){Dn(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},n={},e=Symbol(),r="abcdefghijklmnopqrst";return t[e]=7,r.split("").forEach((function(t){n[t]=t})),7!=Un({},t)[e]||Mn(Un({},n)).join("")!=r}))?function(t,n){for(var e=at(t),r=arguments.length,o=1,i=On.f,a=d.f;r>o;)for(var u,f=P(arguments[o++]),l=i?Hn(Mn(f),i(f)):Mn(f),p=l.length,h=0;p>h;)u=l[h++],c&&!s(a,f,u)||(e[u]=f[u]);return e}:Un;Nn({target:"Object",stat:!0,arity:2,forced:Object.assign!==Bn},{assign:Bn});var Wn=Array.isArray||function(t){return"Array"==A(t)},zn=TypeError,Fn=function(t){if(t>9007199254740991)throw zn("Maximum allowed index exceeded");return t},Gn=function(t,n,e){var r=wt(n);r in t?Ut.f(t,r,v(0,e)):t[r]=e},Vn={};Vn[yt("toStringTag")]="z";var Xn="[object z]"===String(Vn),qn=yt("toStringTag"),Yn=Object,Jn="Arguments"==A(function(){return arguments}()),Kn=Xn?A:function(t){var n,e,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=function(t,n){try{return t[n]}catch(t){}}(n=Yn(t),qn))?e:Jn?A(n):"Object"==(r=A(n))&&R(n.callee)?"Arguments":r},Qn=function(){},$n=[],Zn=M("Reflect","construct"),te=/^\s*(?:class|function)\b/,ne=b(te.exec),ee=!te.exec(Qn),re=function(t){if(!R(t))return!1;try{return Zn(Qn,$n,t),!0}catch(t){return!1}},oe=function(t){if(!R(t))return!1;switch(Kn(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return ee||!!ne(te,qt(t))}catch(t){return!0}};oe.sham=!0;var ie,ae=!Zn||a((function(){var t;return re(re.call)||!re(Object)||!re((function(){t=!0}))||t}))?oe:re,ce=yt("species"),ue=Array,fe=function(t,n){return new(function(t){var n;return Wn(t)&&(n=t.constructor,(ae(n)&&(n===ue||Wn(n.prototype))||N(n)&&null===(n=n[ce]))&&(n=void 0)),void 0===n?ue:n}(t))(0===n?0:n)},se=yt("species"),le=yt("isConcatSpreadable"),pe=F>=51||!a((function(){var t=[];return t[le]=!1,t.concat()[0]!==t})),he=function(t){if(!N(t))return!1;var n=t[le];return void 0!==n?!!n:Wn(t)},de=!(pe&&(ie="concat",F>=51||!a((function(){var t=[];return(t.constructor={})[se]=function(){return{foo:1}},1!==t[ie](Boolean).foo}))));Nn({target:"Array",proto:!0,arity:1,forced:de},{concat:function(t){var n,e,r,o,i,a=at(this),c=fe(a,0),u=0;for(n=-1,r=arguments.length;n<r;n++)if(he(i=-1===n?a:arguments[n]))for(o=vn(i),Fn(u+o),e=0;e<o;e++,u++)e in i&&Gn(c,u,i[e]);else Fn(u+1),Gn(c,u++,i);return c.length=u,c}});var ve,ye=c&&!_t?Object.defineProperties:function(t,n){Ct(t);for(var e,r=j(n),o=Mn(n),i=o.length,a=0;i>a;)Ut.f(t,e=o[a++],r[e]);return t},ge={f:ye},me=M("document","documentElement"),be="prototype",we="script",Se=Qt("IE_PROTO"),Ae=function(){},Oe=function(t){return"<"+we+">"+t+"</"+we+">"},Ee=function(t){t.write(Oe("")),t.close();var n=t.parentWindow.Object;return t=null,n},Pe=function(){try{ve=new ActiveXObject("htmlfile")}catch(t){}var t,n,e;Pe="undefined"!=typeof document?document.domain&&ve?Ee(ve):(n=Ot("iframe"),e="java"+we+":",n.style.display="none",me.appendChild(n),n.src=String(e),(t=n.contentWindow.document).open(),t.write(Oe("document.F=Object")),t.close(),t.F):Ee(ve);for(var r=wn.length;r--;)delete Pe[be][wn[r]];return Pe()};$t[Se]=!0;var Te=Object.create||function(t,n){var e;return null!==t?(Ae[be]=Ct(t),e=new Ae,Ae[be]=null,e[Se]=t):e=Pe(),void 0===n?e:ge.f(e,n)},_e=Ut.f,Le=yt("unscopables"),je=Array.prototype;null==je[Le]&&_e(je,Le,{configurable:!0,value:Te(null)});var Ce,xe,Ie,Re=function(t){je[Le][t]=!0},ke={},Ne=!a((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),Me=Qt("IE_PROTO"),Ue=Object,De=Ue.prototype,He=Ne?Ue.getPrototypeOf:function(t){var n=at(t);if(ut(n,Me))return n[Me];var e=n.constructor;return R(e)&&n instanceof e?e.prototype:n instanceof Ue?De:null},Be=yt("iterator"),We=!1;[].keys&&("next"in(Ie=[].keys())?(xe=He(He(Ie)))!==Object.prototype&&(Ce=xe):We=!0);var ze=!N(Ce)||a((function(){var t={};return Ce[Be].call(t)!==t}));ze&&(Ce={}),R(Ce[Be])||cn(Ce,Be,(function(){return this}));var Fe={IteratorPrototype:Ce,BUGGY_SAFARI_ITERATORS:We},Ge=Ut.f,Ve=yt("toStringTag"),Xe=function(t,n,e){t&&!e&&(t=t.prototype),t&&!ut(t,Ve)&&Ge(t,Ve,{configurable:!0,value:n})},qe=Fe.IteratorPrototype,Ye=function(){return this},Je=String,Ke=TypeError,Qe=Object.setPrototypeOf||("__proto__"in{}?function(){var t,n=!1,e={};try{t=function(t,n,e){try{return b(Q(Object.getOwnPropertyDescriptor(t,n)[e]))}catch(t){}}(Object.prototype,"__proto__","set"),t(e,[]),n=e instanceof Array}catch(t){}return function(e,r){return Ct(e),function(t){if("object"==typeof t||R(t))return t;throw Ke("Can't set "+Je(t)+" as a prototype")}(r),n?t(e,r):e.__proto__=r,e}}():void 0),$e=zt.PROPER,Ze=zt.CONFIGURABLE,tr=Fe.IteratorPrototype,nr=Fe.BUGGY_SAFARI_ITERATORS,er=yt("iterator"),rr="keys",or="values",ir="entries",ar=function(){return this},cr=function(t,n,e,r,o,i,a){!function(t,n,e,r){var o=n+" Iterator";t.prototype=Te(qe,{next:v(+!r,e)}),Xe(t,o,!1),ke[o]=Ye}(e,n,r);var c,u,f,l=function(t){if(t===o&&g)return g;if(!nr&&t in d)return d[t];switch(t){case rr:case or:case ir:return function(){return new e(this,t)}}return function(){return new e(this)}},p=n+" Iterator",h=!1,d=t.prototype,y=d[er]||d["@@iterator"]||o&&d[o],g=!nr&&y||l(o),m="Array"==n&&d.entries||y;if(m&&(c=He(m.call(new t)))!==Object.prototype&&c.next&&(He(c)!==tr&&(Qe?Qe(c,tr):R(c[er])||cn(c,er,ar)),Xe(c,p,!0)),$e&&o==or&&y&&y.name!==or&&(Ze?Dt(d,"name",or):(h=!0,g=function(){return s(y,this)})),o)if(u={values:l(or),keys:i?g:l(rr),entries:l(ir)},a)for(f in u)(nr||h||!(f in d))&&cn(d,f,u[f]);else Nn({target:n,proto:!0,forced:nr||h},u);return d[er]!==g&&cn(d,er,g,{name:o}),ke[n]=g,u},ur=function(t,n){return{value:t,done:n}},fr=Ut.f,sr="Array Iterator",lr=on.set,pr=on.getterFor(sr),hr=cr(Array,"Array",(function(t,n){lr(this,{type:sr,target:j(t),index:0,kind:n})}),(function(){var t=pr(this),n=t.target,e=t.kind,r=t.index++;return!n||r>=n.length?(t.target=void 0,ur(void 0,!0)):ur("keys"==e?r:"values"==e?n[r]:[r,n[r]],!1)}),"values"),dr=ke.Arguments=ke.Array;if(Re("keys"),Re("values"),Re("entries"),c&&"values"!==dr.name)try{fr(dr,"name",{value:"values"})}catch(t){}var vr=Xn?{}.toString:function(){return"[object "+Kn(this)+"]"};Xn||cn(Object.prototype,"toString",vr,{unsafe:!0});var yr,gr,mr,br,wr="undefined"!=typeof process&&"process"==A(process),Sr=yt("species"),Ar=TypeError,Or=TypeError,Er=yt("species"),Pr=function(t,n){var e,r=Ct(t).constructor;return void 0===r||T(e=Ct(r)[Er])?n:function(t){if(ae(t))return t;throw Or(J(t)+" is not a constructor")}(e)},Tr=Function.prototype,_r=Tr.apply,Lr=Tr.call,jr="object"==typeof Reflect&&Reflect.apply||(u?Lr.bind(_r):function(){return Lr.apply(_r,arguments)}),Cr=function(t){if("Function"===A(t))return b(t)},xr=Cr(Cr.bind),Ir=function(t,n){return Q(t),void 0===n?t:u?xr(t,n):function(){return t.apply(n,arguments)}},Rr=b([].slice),kr=TypeError,Nr=/(?:ipad|iphone|ipod).*applewebkit/i.test(D),Mr=i.setImmediate,Ur=i.clearImmediate,Dr=i.process,Hr=i.Dispatch,Br=i.Function,Wr=i.MessageChannel,zr=i.String,Fr=0,Gr={},Vr="onreadystatechange";a((function(){yr=i.location}));var Xr=function(t){if(ut(Gr,t)){var n=Gr[t];delete Gr[t],n()}},qr=function(t){return function(){Xr(t)}},Yr=function(t){Xr(t.data)},Jr=function(t){i.postMessage(zr(t),yr.protocol+"//"+yr.host)};Mr&&Ur||(Mr=function(t){!function(t,n){if(t<n)throw kr("Not enough arguments")}(arguments.length,1);var n=R(t)?t:Br(t),e=Rr(arguments,1);return Gr[++Fr]=function(){jr(n,void 0,e)},gr(Fr),Fr},Ur=function(t){delete Gr[t]},wr?gr=function(t){Dr.nextTick(qr(t))}:Hr&&Hr.now?gr=function(t){Hr.now(qr(t))}:Wr&&!Nr?(br=(mr=new Wr).port2,mr.port1.onmessage=Yr,gr=Ir(br.postMessage,br)):i.addEventListener&&R(i.postMessage)&&!i.importScripts&&yr&&"file:"!==yr.protocol&&!a(Jr)?(gr=Jr,i.addEventListener("message",Yr,!1)):gr=Vr in Ot("script")?function(t){me.appendChild(Ot("script"))[Vr]=function(){me.removeChild(this),Xr(t)}}:function(t){setTimeout(qr(t),0)});var Kr={set:Mr,clear:Ur},Qr=function(){this.head=null,this.tail=null};Qr.prototype={add:function(t){var n={item:t,next:null},e=this.tail;e?e.next=n:this.head=n,this.tail=n},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}};var $r,Zr,to,no,eo,ro=Qr,oo=/ipad|iphone|ipod/i.test(D)&&"undefined"!=typeof Pebble,io=/web0s(?!.*chrome)/i.test(D),ao=Tt.f,co=Kr.set,uo=i.MutationObserver||i.WebKitMutationObserver,fo=i.document,so=i.process,lo=i.Promise,po=ao(i,"queueMicrotask"),ho=po&&po.value;if(!ho){var vo=new ro,yo=function(){var t,n;for(wr&&(t=so.domain)&&t.exit();n=vo.get();)try{n()}catch(t){throw vo.head&&$r(),t}t&&t.enter()};Nr||wr||io||!uo||!fo?!oo&&lo&&lo.resolve?((no=lo.resolve(void 0)).constructor=lo,eo=Ir(no.then,no),$r=function(){eo(yo)}):wr?$r=function(){so.nextTick(yo)}:(co=Ir(co,i),$r=function(){co(yo)}):(Zr=!0,to=fo.createTextNode(""),new uo(yo).observe(to,{characterData:!0}),$r=function(){to.data=Zr=!Zr}),ho=function(t){vo.head||$r(),vo.add(t)}}var go=ho,mo=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},bo=i.Promise,wo="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,So=!wo&&!wr&&"object"==typeof window&&"object"==typeof document;bo&&bo.prototype;var Ao,Oo,Eo,Po,To,_o,Lo,jo=yt("species"),Co=!1,xo=R(i.PromiseRejectionEvent),Io=Rn("Promise",(function(){var t=qt(bo),n=t!==String(bo);if(!n&&66===F)return!0;if(!F||F<51||!/native code/.test(t)){var e=new bo((function(t){t(1)})),r=function(t){t((function(){}),(function(){}))};if((e.constructor={})[jo]=r,!(Co=e.then((function(){}))instanceof r))return!0}return!n&&(So||wo)&&!xo})),Ro={CONSTRUCTOR:Io,REJECTION_EVENT:xo,SUBCLASSING:Co},ko=TypeError,No=function(t){var n,e;this.promise=new t((function(t,r){if(void 0!==n||void 0!==e)throw ko("Bad Promise constructor");n=t,e=r})),this.resolve=Q(n),this.reject=Q(e)},Mo={f:function(t){return new No(t)}},Uo=Kr.set,Do="Promise",Ho=Ro.CONSTRUCTOR,Bo=Ro.REJECTION_EVENT,Wo=Ro.SUBCLASSING,zo=on.getterFor(Do),Fo=on.set,Go=bo&&bo.prototype,Vo=bo,Xo=Go,qo=i.TypeError,Yo=i.document,Jo=i.process,Ko=Mo.f,Qo=Ko,$o=!!(Yo&&Yo.createEvent&&i.dispatchEvent),Zo="unhandledrejection",ti=function(t){var n;return!(!N(t)||!R(n=t.then))&&n},ni=function(t,n){var e,r,o,i=n.value,a=1==n.state,c=a?t.ok:t.fail,u=t.resolve,f=t.reject,l=t.domain;try{c?(a||(2===n.rejection&&ai(n),n.rejection=1),!0===c?e=i:(l&&l.enter(),e=c(i),l&&(l.exit(),o=!0)),e===t.promise?f(qo("Promise-chain cycle")):(r=ti(e))?s(r,e,u,f):u(e)):f(i)}catch(t){l&&!o&&l.exit(),f(t)}},ei=function(t,n){t.notified||(t.notified=!0,go((function(){for(var e,r=t.reactions;e=r.get();)ni(e,t);t.notified=!1,n&&!t.rejection&&oi(t)})))},ri=function(t,n,e){var r,o;$o?((r=Yo.createEvent("Event")).promise=n,r.reason=e,r.initEvent(t,!1,!0),i.dispatchEvent(r)):r={promise:n,reason:e},!Bo&&(o=i["on"+t])?o(r):t===Zo&&function(t,n){try{1==arguments.length?console.error(t):console.error(t,n)}catch(t){}}("Unhandled promise rejection",e)},oi=function(t){s(Uo,i,(function(){var n,e=t.facade,r=t.value;if(ii(t)&&(n=mo((function(){wr?Jo.emit("unhandledRejection",r,e):ri(Zo,e,r)})),t.rejection=wr||ii(t)?2:1,n.error))throw n.value}))},ii=function(t){return 1!==t.rejection&&!t.parent},ai=function(t){s(Uo,i,(function(){var n=t.facade;wr?Jo.emit("rejectionHandled",n):ri("rejectionhandled",n,t.value)}))},ci=function(t,n,e){return function(r){t(n,r,e)}},ui=function(t,n,e){t.done||(t.done=!0,e&&(t=e),t.value=n,t.state=2,ei(t,!0))},fi=function(t,n,e){if(!t.done){t.done=!0,e&&(t=e);try{if(t.facade===n)throw qo("Promise can't be resolved itself");var r=ti(n);r?go((function(){var e={done:!1};try{s(r,n,ci(fi,e,t),ci(ui,e,t))}catch(n){ui(e,n,t)}})):(t.value=n,t.state=1,ei(t,!1))}catch(n){ui({done:!1},n,t)}}};if(Ho&&(Xo=(Vo=function(t){!function(t,n){if(U(n,t))return t;throw Ar("Incorrect invocation")}(this,Xo),Q(t),s(Ao,this);var n=zo(this);try{t(ci(fi,n),ci(ui,n))}catch(t){ui(n,t)}}).prototype,(Ao=function(t){Fo(this,{type:Do,done:!1,notified:!1,parent:!1,reactions:new ro,rejection:!1,state:0,value:void 0})}).prototype=cn(Xo,"then",(function(t,n){var e=zo(this),r=Ko(Pr(this,Vo));return e.parent=!0,r.ok=!R(t)||t,r.fail=R(n)&&n,r.domain=wr?Jo.domain:void 0,0==e.state?e.reactions.add(r):go((function(){ni(r,e)})),r.promise})),Oo=function(){var t=new Ao,n=zo(t);this.promise=t,this.resolve=ci(fi,n),this.reject=ci(ui,n)},Mo.f=Ko=function(t){return t===Vo||undefined===t?new Oo(t):Qo(t)},R(bo)&&Go!==Object.prototype)){Eo=Go.then,Wo||cn(Go,"then",(function(t,n){var e=this;return new Vo((function(t,n){s(Eo,e,t,n)})).then(t,n)}),{unsafe:!0});try{delete Go.constructor}catch(t){}Qe&&Qe(Go,Xo)}Nn({global:!0,constructor:!0,wrap:!0,forced:Ho},{Promise:Vo}),Xe(Vo,Do,!1),Lo=M(Do),c&&Lo&&!Lo[Sr]&&(Po=Lo,To=Sr,(_o={configurable:!0,get:function(){return this}}).get&&an(_o.get,To,{getter:!0}),_o.set&&an(_o.set,To,{setter:!0}),Ut.f(Po,To,_o));var si=yt("iterator"),li=Array.prototype,pi=yt("iterator"),hi=function(t){if(!T(t))return $(t,pi)||$(t,"@@iterator")||ke[Kn(t)]},di=TypeError,vi=function(t,n,e){var r,o;Ct(t);try{if(!(r=$(t,"return"))){if("throw"===n)throw e;return e}r=s(r,t)}catch(t){o=!0,r=t}if("throw"===n)throw e;if(o)throw r;return Ct(r),e},yi=TypeError,gi=function(t,n){this.stopped=t,this.result=n},mi=gi.prototype,bi=function(t,n,e){var r,o,i,a,c,u,f,l,p=e&&e.that,h=!(!e||!e.AS_ENTRIES),d=!(!e||!e.IS_RECORD),v=!(!e||!e.IS_ITERATOR),y=!(!e||!e.INTERRUPTED),g=Ir(n,p),m=function(t){return r&&vi(r,"normal",t),new gi(!0,t)},b=function(t){return h?(Ct(t),y?g(t[0],t[1],m):g(t[0],t[1])):y?g(t,m):g(t)};if(d)r=t.iterator;else if(v)r=t;else{if(!(o=hi(t)))throw yi(J(t)+" is not iterable");if(void 0!==(l=o)&&(ke.Array===l||li[si]===l)){for(i=0,a=vn(t);a>i;i++)if((c=b(t[i]))&&U(mi,c))return c;return new gi(!1)}r=function(t,n){var e=arguments.length<2?hi(t):n;if(Q(e))return Ct(s(e,t));throw di(J(t)+" is not iterable")}(t,o)}for(u=d?t.next:r.next;!(f=s(u,r)).done;){try{c=b(f.value)}catch(t){vi(r,"throw",t)}if("object"==typeof c&&c&&U(mi,c))return c}return new gi(!1)},wi=yt("iterator"),Si=!1;try{var Ai=0,Oi={next:function(){return{done:!!Ai++}},return:function(){Si=!0}};Oi[wi]=function(){return this},Array.from(Oi,(function(){throw 2}))}catch(t){}var Ei=Ro.CONSTRUCTOR||!function(t,n){if(!n&&!Si)return!1;var e=!1;try{var r={};r[wi]=function(){return{next:function(){return{done:e=!0}}}},t(r)}catch(t){}return e}((function(t){bo.all(t).then(void 0,(function(){}))}));Nn({target:"Promise",stat:!0,forced:Ei},{all:function(t){var n=this,e=Mo.f(n),r=e.resolve,o=e.reject,i=mo((function(){var e=Q(n.resolve),i=[],a=0,c=1;bi(t,(function(t){var u=a++,f=!1;c++,s(e,n,t).then((function(t){f||(f=!0,i[u]=t,--c||r(i))}),o)})),--c||r(i)}));return i.error&&o(i.value),e.promise}});var Pi=Ro.CONSTRUCTOR,Ti=bo&&bo.prototype;if(Nn({target:"Promise",proto:!0,forced:Pi,real:!0},{catch:function(t){return this.then(void 0,t)}}),R(bo)){var _i=M("Promise").prototype.catch;Ti.catch!==_i&&cn(Ti,"catch",_i,{unsafe:!0})}Nn({target:"Promise",stat:!0,forced:Ei},{race:function(t){var n=this,e=Mo.f(n),r=e.reject,o=mo((function(){var o=Q(n.resolve);bi(t,(function(t){s(o,n,t).then(e.resolve,r)}))}));return o.error&&r(o.value),e.promise}}),Nn({target:"Promise",stat:!0,forced:Ro.CONSTRUCTOR},{reject:function(t){var n=Mo.f(this);return s(n.reject,void 0,t),n.promise}});var Li=Ro.CONSTRUCTOR;M("Promise"),Nn({target:"Promise",stat:!0,forced:Li},{resolve:function(t){return function(t,n){if(Ct(t),N(n)&&n.constructor===t)return n;var e=Mo.f(t);return(0,e.resolve)(n),e.promise}(this,t)}});var ji=String,Ci=function(t){if("Symbol"===Kn(t))throw TypeError("Cannot convert a Symbol value to a string");return ji(t)},xi=b("".charAt),Ii=b("".charCodeAt),Ri=b("".slice),ki=function(t){return function(n,e){var r,o,i=Ci(L(n)),a=ln(e),c=i.length;return a<0||a>=c?t?"":void 0:(r=Ii(i,a))<55296||r>56319||a+1===c||(o=Ii(i,a+1))<56320||o>57343?t?xi(i,a):r:t?Ri(i,a,a+2):o-56320+(r-55296<<10)+65536}},Ni={codeAt:ki(!1),charAt:ki(!0)}.charAt,Mi="String Iterator",Ui=on.set,Di=on.getterFor(Mi);cr(String,"String",(function(t){Ui(this,{type:Mi,string:Ci(t),index:0})}),(function(){var t,n=Di(this),e=n.string,r=n.index;return r>=e.length?ur(void 0,!0):(t=Ni(e,r),n.index+=t.length,ur(t,!1))}));var Hi={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Bi=Ot("span").classList,Wi=Bi&&Bi.constructor&&Bi.constructor.prototype,zi=Wi===Object.prototype?void 0:Wi,Fi=yt("iterator"),Gi=yt("toStringTag"),Vi=hr.values,Xi=function(t,n){if(t){if(t[Fi]!==Vi)try{Dt(t,Fi,Vi)}catch(n){t[Fi]=Vi}if(t[Gi]||Dt(t,Gi,n),Hi[n])for(var e in hr)if(t[e]!==hr[e])try{Dt(t,e,hr[e])}catch(n){t[e]=hr[e]}}};for(var qi in Hi)Xi(i[qi]&&i[qi].prototype,qi);Xi(zi,"DOMTokenList");var Yi=function(){return Yi=Object.assign||function(t){for(var n,e=1,r=arguments.length;e<r;e++)for(var o in n=arguments[e])Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);return t},Yi.apply(this,arguments)},Ji={weixinJsSdkTicket:"",launchContainerQuery:".mazey-launch-app-selector",launchShowWeixinToBrowserImgUrl:"",canShowWeixinToBrowser:!1,extInfo:"",wexinServiceAccountAppId:"",openPlatformMobileAppId:"",genTagPrefixStr:"mazey-launch-app-btn-prefix-",launchShowWeixinToBrowserClassName:"mazey-launch-app-wx-to-browser",launchBtnClassName:"mazey-launch-app-inner-btn",launchBtnStyle:"",launchBtnText:"Launch App",launchErrorLink:"",canContinuousUpdating:!1,onMenuShareTimelineOptions:void 0,onMenuShareAppMessageOptions:void 0,isConClosed:!0,isWxDebug:!1,canLaunchApp:function(){return!0},canFireErrorLinkDirectly:function(){return!1},launchBtnClick:function(){},launchReady:function(){}},Ki=function(t){void 0===t&&(t=Ji);var n=Object.assign(Ji,t),e=n.weixinJsSdkTicket,r=n.launchContainerQuery,o=n.genTagPrefixStr,i=n.launchShowWeixinToBrowserImgUrl,a=n.canShowWeixinToBrowser,c=n.launchShowWeixinToBrowserClassName,u=n.launchBtnClassName,f=n.launchBtnStyle,s=n.launchBtnText,l=n.launchErrorLink,p=n.wexinServiceAccountAppId,h=n.openPlatformMobileAppId,d=n.canContinuousUpdating,v=n.onMenuShareTimelineOptions,y=n.onMenuShareAppMessageOptions,g=n.isConClosed,m=n.isWxDebug,b=n.canLaunchApp,w=n.canFireErrorLinkDirectly,S=n.launchBtnClick,A=n.launchReady,O=n.extInfo,E=window.mazey,P=window.sha1,T=window.wx,_=window.$||window.jQuery;E&&P&&T&&_||console.error("Launch App: wx or sha1 or $ or mazey is not found");var L=function(){},j=E.genCustomConsole("LaunchCon:",{isClosed:g});j.log("Launch App");var C={title:"",link:"",imgUrl:"",success:function(){},cancel:function(){}},x={title:"",desc:"",link:"",imgUrl:"",type:"",dataUrl:"",success:function(){},cancel:function(){}},I={title:document.title,link:location.href};C=Yi(Yi({},C),I),x=Yi(Yi({},x),I);var R=function(t,n,e){return void 0===t&&(t=""),void 0===n&&(n=""),void 0===e&&(e="button"),"<style>.".concat(u," {")+"opacity: 0;width: 100%;height: 100%;backgroud: transparent;color: #300f54;border: none;box-sizing: border-box;text-align: center;vertical-align: middle;"+f+n+"}</style>"+"<".concat(e,' class="').concat(u,'"')+(t&&"button"===e?' onclick="'.concat(t,'"'):"")+(t&&"a"===e?' target="_self" href="'.concat(t,'"'):"")+">"+s+"</".concat(e,">")},k=R();function N(){E.addStyle('.mazey-launch-app-mask { position: fixed; top: 0; right: 0; bottom: 0; left: 0; background-color: rgba(0, 0, 0, .5); text-align: right; font-size: 0; white-space: nowrap; overflow: auto; z-index: 999; } .mazey-launch-app-img { display: inline-block; vertical-align: middle; text-align: left; font-size: 14px; white-space: normal; width: 50vw; margin: 0.5rem 0.5rem 0 0; } .mazey-launch-app-img:after { content: ""; display: inline-block; height: 100%; vertical-align: middle; }',{id:"mazey-launch-app-mask-style"}),window.LAUNCH_APP_HIDE_WEIXIN_BROWSER||(window.LAUNCH_APP_HIDE_WEIXIN_BROWSER=function(){_(".mazey-launch-app-mask").hide()}),0===_(".mazey-launch-app-mask").length?_("body").append("<div class='mazey-launch-app-mask' onclick='window.LAUNCH_APP_HIDE_WEIXIN_BROWSER()'><img "+"class='mazey-launch-app-img ".concat(c,"' ")+"src='".concat(i,"' ")+"alt='Launch App' /></div>"):_(".mazey-launch-app-mask").show()}function M(){j.log("renderWeixinLaunchTemplate"),function(t,n){void 0===t&&(t=""),void 0===n&&(n=""),j.log("renderWXOpenLaunchApp"),Promise.all([Promise.resolve(e||window.LAUNCH_APP_WEIXIN_JS_SDK_TICKET),Promise.resolve(P)]).then((function(e){j.log("allRes",e);var i=e[0],c=e[1],u=E.generateRndNum(7),f=i,s=(new Date).getTime(),p=c("jsapi_ticket="+f+"&noncestr="+u+"×tamp="+s+"&url="+location.href);return T.config({debug:m,appId:t,timestamp:s,nonceStr:u,signature:p,jsApiList:["showOptionMenu","onMenuShareTimeline","onMenuShareAppMessage"],openTagList:["wx-open-launch-app"]}),T.ready((function(){v&&(j.log("onMenuShareTimelineOptions",v),T.onMenuShareTimeline(v)),window.LAUNCH_APP_SHARE_TIMELINE=function(t){t=Yi(Yi({},C),t),j.log("window LAUNCH_APP_SHARE_TIMELINE",t),T.onMenuShareTimeline(t)},y&&(j.log("onMenuShareAppMessageOptions",y),T.onMenuShareAppMessage(y)),window.LAUNCH_APP_SHARE_APP_MESSAGE=function(t){t=Yi(Yi({},x),t),j.log("window LAUNCH_APP_SHARE_APP_MESSAGE",t),T.onMenuShareAppMessage(t)},window.LAUNCH_APP_READY=!0,A&&A();var t=function(){var t=_(r);j.log("containers",r,t,t.length),t.length>0&&t.each((function(t,e){var r=_(e).attr("data-launch-app-key");if(!r){var i=_(e).parents("[data-launch-app-key]:eq(0)");i.length>0&&(r=i.attr("data-launch-app-key"),j.log("keyEle",i,r))}r||(r=t);var c="mazey-launch-app-tag-".concat(r),u=_(".".concat(c," wx-open-launch-app")),f=_(e).attr("data-launch-app-ext-info");if(!f){var s=_(e).parents("[data-launch-app-ext-info]:eq(0)");s.length>0&&(f=s.attr("data-launch-app-ext-info"),j.log("eleExtInfoEle parents",s,f))}f&&(O=f);var p=_(e).attr("data-launch-app-error-link");if(!p){var h=_(e).parents("[data-launch-app-error-link]:eq(0)");h.length>0&&(p=h.attr("data-launch-app-error-link"),j.log("eleErrorLinkEle parents",h,p))}var d=l;p&&(d=p),0===u.length&&(_(e).addClass(c),j.log("success:",c),function(t){var e=o,r=e+t,i="<wx-open-launch-app id='"+r+"' appid='"+n+"' extinfo='".concat(O)+"' style='z-index: 99; position: absolute; width: 100%; height: 100%; opacity: 1; background: transparent; overflow: hidden; left: 0;'><script type='text/wxtag-template'>"+k+"<\/script></wx-open-launch-app>";_("."+t+":eq(0)").append(i);var c=document.getElementById(r);c&&(c.addEventListener("ready",(function(t){j.log("ready event",t)})),c.addEventListener("launch",(function(t){j.log("launch event",t),t.detail&&t.detail.extInfo&&j.log("launch extInfo",t.detail.extInfo)})),c.addEventListener("error",(function(t){j.error(t.detail),_("[id^='"+e+"']").hide(),a&&N(),d&&(j.log("realErrorLink",d),location.href=d)})),c.addEventListener("click",(function(t){j.log("click event",t),S&&S()})))}(c))}))};t(),L=t})),T.error((function(t){j.error(t)})),"success:launch_app"})).catch((function(t){j.error(t)}))}(p,h)}function U(t){if(j.log("appUpdated",t),!window.LAUNCH_APP_LOAD&&b(t)&&(M(),window.LAUNCH_APP_LOAD=!0),d&&window.LAUNCH_APP_LOAD&&b(t)&&L(),w()){var n=_(r);n.length>0&&n.each((function(t,n){var e=_(n).children("."+u);if(!e||!e.length){var r=_(n).attr("data-launch-app-error-link");if(!r){var o=_(n).parents("[data-launch-app-error-link]:eq(0)");o.length>0&&(r=o.attr("data-launch-app-error-link"))}if(r&&"string"==typeof r&&r.length){var i=R(r,"position: absolute; left: 0; z-index: 999;","a");_(n).append(i)}}}))}}function D(){j.log("appBeforeDestroy",D),window.LAUNCH_APP_LOAD=null,window.LAUNCH_APP_HIDE_WEIXIN_BROWSER=null}return window.LAUNCH_APP_UPDATE=U,window.LAUNCH_APP_BEFORE_DESTROY=D,window.LAUNCH_APP_SHOW_WEIXIN_TO_BROWSER=N,{LAUNCH_APP_UPDATE:U,LAUNCH_APP_BEFORE_DESTROY:D,LAUNCH_APP_SHOW_WEIXIN_TO_BROWSER:N,LAUNCH_APP_SHARE_TIMELINE:function(t){j.log("opt",t)},LAUNCH_APP_SHARE_APP_MESSAGE:function(t){j.log("opt",t)},start:U,update:U,destroy:D}};export{Ki as default};
|
package/lib/launch-app.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var LAUNCH_APP=function(){"use strict";var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(t,n){return t(n={exports:{}},n.exports),n.exports}var e,r,o=function(t){return t&&t.Math==Math&&t},i=o("object"==typeof globalThis&&globalThis)||o("object"==typeof window&&window)||o("object"==typeof self&&self)||o("object"==typeof t&&t)||function(){return this}()||Function("return this")(),a=function(t){try{return!!t()}catch(t){return!0}},c=!a((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),u=!a((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),f=Function.prototype.call,s=u?f.bind(f):function(){return f.apply(f,arguments)},l={}.propertyIsEnumerable,p=Object.getOwnPropertyDescriptor,h=p&&!l.call({1:2},1)?function(t){var n=p(this,t);return!!n&&n.enumerable}:l,d={f:h},v=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}},y=Function.prototype,g=y.call,m=u&&y.bind.bind(g,g),b=u?m:function(t){return function(){return g.apply(t,arguments)}},w=b({}.toString),S=b("".slice),A=function(t){return S(w(t),8,-1)},O=Object,P=b("".split),E=a((function(){return!O("z").propertyIsEnumerable(0)}))?function(t){return"String"==A(t)?P(t,""):O(t)}:O,T=function(t){return null==t},_=TypeError,j=function(t){if(T(t))throw _("Can't call method on "+t);return t},L=function(t){return E(j(t))},C="object"==typeof document&&document.all,x={all:C,IS_HTMLDDA:void 0===C&&void 0!==C},I=x.all,R=x.IS_HTMLDDA?function(t){return"function"==typeof t||t===I}:function(t){return"function"==typeof t},N=x.all,k=x.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:R(t)||t===N}:function(t){return"object"==typeof t?null!==t:R(t)},M=function(t,n){return arguments.length<2?(e=i[t],R(e)?e:void 0):i[t]&&i[t][n];var e},U=b({}.isPrototypeOf),D="undefined"!=typeof navigator&&String(navigator.userAgent)||"",H=i.process,B=i.Deno,W=H&&H.versions||B&&B.version,z=W&&W.v8;z&&(r=(e=z.split("."))[0]>0&&e[0]<4?1:+(e[0]+e[1])),!r&&D&&(!(e=D.match(/Edge\/(\d+)/))||e[1]>=74)&&(e=D.match(/Chrome\/(\d+)/))&&(r=+e[1]);var F=r,G=!!Object.getOwnPropertySymbols&&!a((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&F&&F<41})),V=G&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,X=Object,q=V?function(t){return"symbol"==typeof t}:function(t){var n=M("Symbol");return R(n)&&U(n.prototype,X(t))},Y=String,J=function(t){try{return Y(t)}catch(t){return"Object"}},K=TypeError,Q=function(t){if(R(t))return t;throw K(J(t)+" is not a function")},$=function(t,n){var e=t[n];return T(e)?void 0:Q(e)},Z=TypeError,tt=Object.defineProperty,nt=function(t,n){try{tt(i,t,{value:n,configurable:!0,writable:!0})}catch(e){i[t]=n}return n},et="__core-js_shared__",rt=i[et]||nt(et,{}),ot=n((function(t){(t.exports=function(t,n){return rt[t]||(rt[t]=void 0!==n?n:{})})("versions",[]).push({version:"3.30.1",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.30.1/LICENSE",source:"https://github.com/zloirock/core-js"})})),it=Object,at=function(t){return it(j(t))},ct=b({}.hasOwnProperty),ut=Object.hasOwn||function(t,n){return ct(at(t),n)},ft=0,st=Math.random(),lt=b(1..toString),pt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+lt(++ft+st,36)},ht=i.Symbol,dt=ot("wks"),vt=V?ht.for||ht:ht&&ht.withoutSetter||pt,yt=function(t){return ut(dt,t)||(dt[t]=G&&ut(ht,t)?ht[t]:vt("Symbol."+t)),dt[t]},gt=TypeError,mt=yt("toPrimitive"),bt=function(t,n){if(!k(t)||q(t))return t;var e,r=$(t,mt);if(r){if(void 0===n&&(n="default"),e=s(r,t,n),!k(e)||q(e))return e;throw gt("Can't convert object to primitive value")}return void 0===n&&(n="number"),function(t,n){var e,r;if("string"===n&&R(e=t.toString)&&!k(r=s(e,t)))return r;if(R(e=t.valueOf)&&!k(r=s(e,t)))return r;if("string"!==n&&R(e=t.toString)&&!k(r=s(e,t)))return r;throw Z("Can't convert object to primitive value")}(t,n)},wt=function(t){var n=bt(t,"string");return q(n)?n:n+""},St=i.document,At=k(St)&&k(St.createElement),Ot=function(t){return At?St.createElement(t):{}},Pt=!c&&!a((function(){return 7!=Object.defineProperty(Ot("div"),"a",{get:function(){return 7}}).a})),Et=Object.getOwnPropertyDescriptor,Tt={f:c?Et:function(t,n){if(t=L(t),n=wt(n),Pt)try{return Et(t,n)}catch(t){}if(ut(t,n))return v(!s(d.f,t,n),t[n])}},_t=c&&a((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),jt=String,Lt=TypeError,Ct=function(t){if(k(t))return t;throw Lt(jt(t)+" is not an object")},xt=TypeError,It=Object.defineProperty,Rt=Object.getOwnPropertyDescriptor,Nt="enumerable",kt="configurable",Mt="writable",Ut={f:c?_t?function(t,n,e){if(Ct(t),n=wt(n),Ct(e),"function"==typeof t&&"prototype"===n&&"value"in e&&Mt in e&&!e[Mt]){var r=Rt(t,n);r&&r[Mt]&&(t[n]=e.value,e={configurable:kt in e?e[kt]:r[kt],enumerable:Nt in e?e[Nt]:r[Nt],writable:!1})}return It(t,n,e)}:It:function(t,n,e){if(Ct(t),n=wt(n),Ct(e),Pt)try{return It(t,n,e)}catch(t){}if("get"in e||"set"in e)throw xt("Accessors not supported");return"value"in e&&(t[n]=e.value),t}},Dt=c?function(t,n,e){return Ut.f(t,n,v(1,e))}:function(t,n,e){return t[n]=e,t},Ht=Function.prototype,Bt=c&&Object.getOwnPropertyDescriptor,Wt=ut(Ht,"name"),zt={EXISTS:Wt,PROPER:Wt&&"something"===function(){}.name,CONFIGURABLE:Wt&&(!c||c&&Bt(Ht,"name").configurable)},Ft=b(Function.toString);R(rt.inspectSource)||(rt.inspectSource=function(t){return Ft(t)});var Gt,Vt,Xt,qt=rt.inspectSource,Yt=i.WeakMap,Jt=R(Yt)&&/native code/.test(String(Yt)),Kt=ot("keys"),Qt=function(t){return Kt[t]||(Kt[t]=pt(t))},$t={},Zt="Object already initialized",tn=i.TypeError,nn=i.WeakMap;if(Jt||rt.state){var en=rt.state||(rt.state=new nn);en.get=en.get,en.has=en.has,en.set=en.set,Gt=function(t,n){if(en.has(t))throw tn(Zt);return n.facade=t,en.set(t,n),n},Vt=function(t){return en.get(t)||{}},Xt=function(t){return en.has(t)}}else{var rn=Qt("state");$t[rn]=!0,Gt=function(t,n){if(ut(t,rn))throw tn(Zt);return n.facade=t,Dt(t,rn,n),n},Vt=function(t){return ut(t,rn)?t[rn]:{}},Xt=function(t){return ut(t,rn)}}var on={set:Gt,get:Vt,has:Xt,enforce:function(t){return Xt(t)?Vt(t):Gt(t,{})},getterFor:function(t){return function(n){var e;if(!k(n)||(e=Vt(n)).type!==t)throw tn("Incompatible receiver, "+t+" required");return e}}},an=n((function(t){var n=zt.CONFIGURABLE,e=on.enforce,r=on.get,o=String,i=Object.defineProperty,u=b("".slice),f=b("".replace),s=b([].join),l=c&&!a((function(){return 8!==i((function(){}),"length",{value:8}).length})),p=String(String).split("String"),h=t.exports=function(t,r,a){"Symbol("===u(o(r),0,7)&&(r="["+f(o(r),/^Symbol\(([^)]*)\)/,"$1")+"]"),a&&a.getter&&(r="get "+r),a&&a.setter&&(r="set "+r),(!ut(t,"name")||n&&t.name!==r)&&(c?i(t,"name",{value:r,configurable:!0}):t.name=r),l&&a&&ut(a,"arity")&&t.length!==a.arity&&i(t,"length",{value:a.arity});try{a&&ut(a,"constructor")&&a.constructor?c&&i(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var h=e(t);return ut(h,"source")||(h.source=s(p,"string"==typeof r?r:"")),t};Function.prototype.toString=h((function(){return R(this)&&r(this).source||qt(this)}),"toString")})),cn=function(t,n,e,r){r||(r={});var o=r.enumerable,i=void 0!==r.name?r.name:n;if(R(e)&&an(e,i,r),r.global)o?t[n]=e:nt(n,e);else{try{r.unsafe?t[n]&&(o=!0):delete t[n]}catch(t){}o?t[n]=e:Ut.f(t,n,{value:e,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return t},un=Math.ceil,fn=Math.floor,sn=Math.trunc||function(t){var n=+t;return(n>0?fn:un)(n)},ln=function(t){var n=+t;return n!=n||0===n?0:sn(n)},pn=Math.max,hn=Math.min,dn=Math.min,vn=function(t){return(n=t.length)>0?dn(ln(n),9007199254740991):0;var n},yn=function(t){return function(n,e,r){var o,i=L(n),a=vn(i),c=function(t,n){var e=ln(t);return e<0?pn(e+n,0):hn(e,n)}(r,a);if(t&&e!=e){for(;a>c;)if((o=i[c++])!=o)return!0}else for(;a>c;c++)if((t||c in i)&&i[c]===e)return t||c||0;return!t&&-1}},gn={includes:yn(!0),indexOf:yn(!1)}.indexOf,mn=b([].push),bn=function(t,n){var e,r=L(t),o=0,i=[];for(e in r)!ut($t,e)&&ut(r,e)&&mn(i,e);for(;n.length>o;)ut(r,e=n[o++])&&(~gn(i,e)||mn(i,e));return i},wn=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Sn=wn.concat("length","prototype"),An={f:Object.getOwnPropertyNames||function(t){return bn(t,Sn)}},On={f:Object.getOwnPropertySymbols},Pn=b([].concat),En=M("Reflect","ownKeys")||function(t){var n=An.f(Ct(t)),e=On.f;return e?Pn(n,e(t)):n},Tn=function(t,n,e){for(var r=En(n),o=Ut.f,i=Tt.f,a=0;a<r.length;a++){var c=r[a];ut(t,c)||e&&ut(e,c)||o(t,c,i(n,c))}},_n=/#|\.prototype\./,jn=function(t,n){var e=Cn[Ln(t)];return e==In||e!=xn&&(R(n)?a(n):!!n)},Ln=jn.normalize=function(t){return String(t).replace(_n,".").toLowerCase()},Cn=jn.data={},xn=jn.NATIVE="N",In=jn.POLYFILL="P",Rn=jn,Nn=Tt.f,kn=function(t,n){var e,r,o,a,c,u=t.target,f=t.global,s=t.stat;if(e=f?i:s?i[u]||nt(u,{}):(i[u]||{}).prototype)for(r in n){if(a=n[r],o=t.dontCallGetSet?(c=Nn(e,r))&&c.value:e[r],!Rn(f?r:u+(s?".":"#")+r,t.forced)&&void 0!==o){if(typeof a==typeof o)continue;Tn(a,o)}(t.sham||o&&o.sham)&&Dt(a,"sham",!0),cn(e,r,a,t)}},Mn=Object.keys||function(t){return bn(t,wn)},Un=Object.assign,Dn=Object.defineProperty,Hn=b([].concat),Bn=!Un||a((function(){if(c&&1!==Un({b:1},Un(Dn({},"a",{enumerable:!0,get:function(){Dn(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},n={},e=Symbol(),r="abcdefghijklmnopqrst";return t[e]=7,r.split("").forEach((function(t){n[t]=t})),7!=Un({},t)[e]||Mn(Un({},n)).join("")!=r}))?function(t,n){for(var e=at(t),r=arguments.length,o=1,i=On.f,a=d.f;r>o;)for(var u,f=E(arguments[o++]),l=i?Hn(Mn(f),i(f)):Mn(f),p=l.length,h=0;p>h;)u=l[h++],c&&!s(a,f,u)||(e[u]=f[u]);return e}:Un;kn({target:"Object",stat:!0,arity:2,forced:Object.assign!==Bn},{assign:Bn});var Wn,zn=c&&!_t?Object.defineProperties:function(t,n){Ct(t);for(var e,r=L(n),o=Mn(n),i=o.length,a=0;i>a;)Ut.f(t,e=o[a++],r[e]);return t},Fn={f:zn},Gn=M("document","documentElement"),Vn="prototype",Xn="script",qn=Qt("IE_PROTO"),Yn=function(){},Jn=function(t){return"<"+Xn+">"+t+"</"+Xn+">"},Kn=function(t){t.write(Jn("")),t.close();var n=t.parentWindow.Object;return t=null,n},Qn=function(){try{Wn=new ActiveXObject("htmlfile")}catch(t){}var t,n,e;Qn="undefined"!=typeof document?document.domain&&Wn?Kn(Wn):(n=Ot("iframe"),e="java"+Xn+":",n.style.display="none",Gn.appendChild(n),n.src=String(e),(t=n.contentWindow.document).open(),t.write(Jn("document.F=Object")),t.close(),t.F):Kn(Wn);for(var r=wn.length;r--;)delete Qn[Vn][wn[r]];return Qn()};$t[qn]=!0;var $n=Object.create||function(t,n){var e;return null!==t?(Yn[Vn]=Ct(t),e=new Yn,Yn[Vn]=null,e[qn]=t):e=Qn(),void 0===n?e:Fn.f(e,n)},Zn=Ut.f,te=yt("unscopables"),ne=Array.prototype;null==ne[te]&&Zn(ne,te,{configurable:!0,value:$n(null)});var ee,re,oe,ie=function(t){ne[te][t]=!0},ae={},ce=!a((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),ue=Qt("IE_PROTO"),fe=Object,se=fe.prototype,le=ce?fe.getPrototypeOf:function(t){var n=at(t);if(ut(n,ue))return n[ue];var e=n.constructor;return R(e)&&n instanceof e?e.prototype:n instanceof fe?se:null},pe=yt("iterator"),he=!1;[].keys&&("next"in(oe=[].keys())?(re=le(le(oe)))!==Object.prototype&&(ee=re):he=!0);var de=!k(ee)||a((function(){var t={};return ee[pe].call(t)!==t}));de&&(ee={}),R(ee[pe])||cn(ee,pe,(function(){return this}));var ve={IteratorPrototype:ee,BUGGY_SAFARI_ITERATORS:he},ye=Ut.f,ge=yt("toStringTag"),me=function(t,n,e){t&&!e&&(t=t.prototype),t&&!ut(t,ge)&&ye(t,ge,{configurable:!0,value:n})},be=ve.IteratorPrototype,we=function(){return this},Se=String,Ae=TypeError,Oe=Object.setPrototypeOf||("__proto__"in{}?function(){var t,n=!1,e={};try{t=function(t,n,e){try{return b(Q(Object.getOwnPropertyDescriptor(t,n)[e]))}catch(t){}}(Object.prototype,"__proto__","set"),t(e,[]),n=e instanceof Array}catch(t){}return function(e,r){return Ct(e),function(t){if("object"==typeof t||R(t))return t;throw Ae("Can't set "+Se(t)+" as a prototype")}(r),n?t(e,r):e.__proto__=r,e}}():void 0),Pe=zt.PROPER,Ee=zt.CONFIGURABLE,Te=ve.IteratorPrototype,_e=ve.BUGGY_SAFARI_ITERATORS,je=yt("iterator"),Le="keys",Ce="values",xe="entries",Ie=function(){return this},Re=function(t,n,e,r,o,i,a){!function(t,n,e,r){var o=n+" Iterator";t.prototype=$n(be,{next:v(+!r,e)}),me(t,o,!1),ae[o]=we}(e,n,r);var c,u,f,l=function(t){if(t===o&&g)return g;if(!_e&&t in d)return d[t];switch(t){case Le:case Ce:case xe:return function(){return new e(this,t)}}return function(){return new e(this)}},p=n+" Iterator",h=!1,d=t.prototype,y=d[je]||d["@@iterator"]||o&&d[o],g=!_e&&y||l(o),m="Array"==n&&d.entries||y;if(m&&(c=le(m.call(new t)))!==Object.prototype&&c.next&&(le(c)!==Te&&(Oe?Oe(c,Te):R(c[je])||cn(c,je,Ie)),me(c,p,!0)),Pe&&o==Ce&&y&&y.name!==Ce&&(Ee?Dt(d,"name",Ce):(h=!0,g=function(){return s(y,this)})),o)if(u={values:l(Ce),keys:i?g:l(Le),entries:l(xe)},a)for(f in u)(_e||h||!(f in d))&&cn(d,f,u[f]);else kn({target:n,proto:!0,forced:_e||h},u);return d[je]!==g&&cn(d,je,g,{name:o}),ae[n]=g,u},Ne=function(t,n){return{value:t,done:n}},ke=Ut.f,Me="Array Iterator",Ue=on.set,De=on.getterFor(Me),He=Re(Array,"Array",(function(t,n){Ue(this,{type:Me,target:L(t),index:0,kind:n})}),(function(){var t=De(this),n=t.target,e=t.kind,r=t.index++;return!n||r>=n.length?(t.target=void 0,Ne(void 0,!0)):Ne("keys"==e?r:"values"==e?n[r]:[r,n[r]],!1)}),"values"),Be=ae.Arguments=ae.Array;if(ie("keys"),ie("values"),ie("entries"),c&&"values"!==Be.name)try{ke(Be,"name",{value:"values"})}catch(t){}var We={};We[yt("toStringTag")]="z";var ze="[object z]"===String(We),Fe=yt("toStringTag"),Ge=Object,Ve="Arguments"==A(function(){return arguments}()),Xe=ze?A:function(t){var n,e,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=function(t,n){try{return t[n]}catch(t){}}(n=Ge(t),Fe))?e:Ve?A(n):"Object"==(r=A(n))&&R(n.callee)?"Arguments":r},qe=ze?{}.toString:function(){return"[object "+Xe(this)+"]"};ze||cn(Object.prototype,"toString",qe,{unsafe:!0});var Ye="undefined"!=typeof process&&"process"==A(process),Je=yt("species"),Ke=TypeError,Qe=function(){},$e=[],Ze=M("Reflect","construct"),tr=/^\s*(?:class|function)\b/,nr=b(tr.exec),er=!tr.exec(Qe),rr=function(t){if(!R(t))return!1;try{return Ze(Qe,$e,t),!0}catch(t){return!1}},or=function(t){if(!R(t))return!1;switch(Xe(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return er||!!nr(tr,qt(t))}catch(t){return!0}};or.sham=!0;var ir,ar,cr,ur,fr=!Ze||a((function(){var t;return rr(rr.call)||!rr(Object)||!rr((function(){t=!0}))||t}))?or:rr,sr=TypeError,lr=yt("species"),pr=function(t,n){var e,r=Ct(t).constructor;return void 0===r||T(e=Ct(r)[lr])?n:function(t){if(fr(t))return t;throw sr(J(t)+" is not a constructor")}(e)},hr=Function.prototype,dr=hr.apply,vr=hr.call,yr="object"==typeof Reflect&&Reflect.apply||(u?vr.bind(dr):function(){return vr.apply(dr,arguments)}),gr=function(t){if("Function"===A(t))return b(t)},mr=gr(gr.bind),br=function(t,n){return Q(t),void 0===n?t:u?mr(t,n):function(){return t.apply(n,arguments)}},wr=b([].slice),Sr=TypeError,Ar=/(?:ipad|iphone|ipod).*applewebkit/i.test(D),Or=i.setImmediate,Pr=i.clearImmediate,Er=i.process,Tr=i.Dispatch,_r=i.Function,jr=i.MessageChannel,Lr=i.String,Cr=0,xr={},Ir="onreadystatechange";a((function(){ir=i.location}));var Rr=function(t){if(ut(xr,t)){var n=xr[t];delete xr[t],n()}},Nr=function(t){return function(){Rr(t)}},kr=function(t){Rr(t.data)},Mr=function(t){i.postMessage(Lr(t),ir.protocol+"//"+ir.host)};Or&&Pr||(Or=function(t){!function(t,n){if(t<n)throw Sr("Not enough arguments")}(arguments.length,1);var n=R(t)?t:_r(t),e=wr(arguments,1);return xr[++Cr]=function(){yr(n,void 0,e)},ar(Cr),Cr},Pr=function(t){delete xr[t]},Ye?ar=function(t){Er.nextTick(Nr(t))}:Tr&&Tr.now?ar=function(t){Tr.now(Nr(t))}:jr&&!Ar?(ur=(cr=new jr).port2,cr.port1.onmessage=kr,ar=br(ur.postMessage,ur)):i.addEventListener&&R(i.postMessage)&&!i.importScripts&&ir&&"file:"!==ir.protocol&&!a(Mr)?(ar=Mr,i.addEventListener("message",kr,!1)):ar=Ir in Ot("script")?function(t){Gn.appendChild(Ot("script"))[Ir]=function(){Gn.removeChild(this),Rr(t)}}:function(t){setTimeout(Nr(t),0)});var Ur={set:Or,clear:Pr},Dr=function(){this.head=null,this.tail=null};Dr.prototype={add:function(t){var n={item:t,next:null},e=this.tail;e?e.next=n:this.head=n,this.tail=n},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}};var Hr,Br,Wr,zr,Fr,Gr=Dr,Vr=/ipad|iphone|ipod/i.test(D)&&"undefined"!=typeof Pebble,Xr=/web0s(?!.*chrome)/i.test(D),qr=Tt.f,Yr=Ur.set,Jr=i.MutationObserver||i.WebKitMutationObserver,Kr=i.document,Qr=i.process,$r=i.Promise,Zr=qr(i,"queueMicrotask"),to=Zr&&Zr.value;if(!to){var no=new Gr,eo=function(){var t,n;for(Ye&&(t=Qr.domain)&&t.exit();n=no.get();)try{n()}catch(t){throw no.head&&Hr(),t}t&&t.enter()};Ar||Ye||Xr||!Jr||!Kr?!Vr&&$r&&$r.resolve?((zr=$r.resolve(void 0)).constructor=$r,Fr=br(zr.then,zr),Hr=function(){Fr(eo)}):Ye?Hr=function(){Qr.nextTick(eo)}:(Yr=br(Yr,i),Hr=function(){Yr(eo)}):(Br=!0,Wr=Kr.createTextNode(""),new Jr(eo).observe(Wr,{characterData:!0}),Hr=function(){Wr.data=Br=!Br}),to=function(t){no.head||Hr(),no.add(t)}}var ro=to,oo=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},io=i.Promise,ao="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,co=!ao&&!Ye&&"object"==typeof window&&"object"==typeof document;io&&io.prototype;var uo,fo,so,lo,po,ho,vo,yo=yt("species"),go=!1,mo=R(i.PromiseRejectionEvent),bo=Rn("Promise",(function(){var t=qt(io),n=t!==String(io);if(!n&&66===F)return!0;if(!F||F<51||!/native code/.test(t)){var e=new io((function(t){t(1)})),r=function(t){t((function(){}),(function(){}))};if((e.constructor={})[yo]=r,!(go=e.then((function(){}))instanceof r))return!0}return!n&&(co||ao)&&!mo})),wo={CONSTRUCTOR:bo,REJECTION_EVENT:mo,SUBCLASSING:go},So=TypeError,Ao=function(t){var n,e;this.promise=new t((function(t,r){if(void 0!==n||void 0!==e)throw So("Bad Promise constructor");n=t,e=r})),this.resolve=Q(n),this.reject=Q(e)},Oo={f:function(t){return new Ao(t)}},Po=Ur.set,Eo="Promise",To=wo.CONSTRUCTOR,_o=wo.REJECTION_EVENT,jo=wo.SUBCLASSING,Lo=on.getterFor(Eo),Co=on.set,xo=io&&io.prototype,Io=io,Ro=xo,No=i.TypeError,ko=i.document,Mo=i.process,Uo=Oo.f,Do=Uo,Ho=!!(ko&&ko.createEvent&&i.dispatchEvent),Bo="unhandledrejection",Wo=function(t){var n;return!(!k(t)||!R(n=t.then))&&n},zo=function(t,n){var e,r,o,i=n.value,a=1==n.state,c=a?t.ok:t.fail,u=t.resolve,f=t.reject,l=t.domain;try{c?(a||(2===n.rejection&&qo(n),n.rejection=1),!0===c?e=i:(l&&l.enter(),e=c(i),l&&(l.exit(),o=!0)),e===t.promise?f(No("Promise-chain cycle")):(r=Wo(e))?s(r,e,u,f):u(e)):f(i)}catch(t){l&&!o&&l.exit(),f(t)}},Fo=function(t,n){t.notified||(t.notified=!0,ro((function(){for(var e,r=t.reactions;e=r.get();)zo(e,t);t.notified=!1,n&&!t.rejection&&Vo(t)})))},Go=function(t,n,e){var r,o;Ho?((r=ko.createEvent("Event")).promise=n,r.reason=e,r.initEvent(t,!1,!0),i.dispatchEvent(r)):r={promise:n,reason:e},!_o&&(o=i["on"+t])?o(r):t===Bo&&function(t,n){try{1==arguments.length?console.error(t):console.error(t,n)}catch(t){}}("Unhandled promise rejection",e)},Vo=function(t){s(Po,i,(function(){var n,e=t.facade,r=t.value;if(Xo(t)&&(n=oo((function(){Ye?Mo.emit("unhandledRejection",r,e):Go(Bo,e,r)})),t.rejection=Ye||Xo(t)?2:1,n.error))throw n.value}))},Xo=function(t){return 1!==t.rejection&&!t.parent},qo=function(t){s(Po,i,(function(){var n=t.facade;Ye?Mo.emit("rejectionHandled",n):Go("rejectionhandled",n,t.value)}))},Yo=function(t,n,e){return function(r){t(n,r,e)}},Jo=function(t,n,e){t.done||(t.done=!0,e&&(t=e),t.value=n,t.state=2,Fo(t,!0))},Ko=function(t,n,e){if(!t.done){t.done=!0,e&&(t=e);try{if(t.facade===n)throw No("Promise can't be resolved itself");var r=Wo(n);r?ro((function(){var e={done:!1};try{s(r,n,Yo(Ko,e,t),Yo(Jo,e,t))}catch(n){Jo(e,n,t)}})):(t.value=n,t.state=1,Fo(t,!1))}catch(n){Jo({done:!1},n,t)}}};if(To&&(Ro=(Io=function(t){!function(t,n){if(U(n,t))return t;throw Ke("Incorrect invocation")}(this,Ro),Q(t),s(uo,this);var n=Lo(this);try{t(Yo(Ko,n),Yo(Jo,n))}catch(t){Jo(n,t)}}).prototype,(uo=function(t){Co(this,{type:Eo,done:!1,notified:!1,parent:!1,reactions:new Gr,rejection:!1,state:0,value:void 0})}).prototype=cn(Ro,"then",(function(t,n){var e=Lo(this),r=Uo(pr(this,Io));return e.parent=!0,r.ok=!R(t)||t,r.fail=R(n)&&n,r.domain=Ye?Mo.domain:void 0,0==e.state?e.reactions.add(r):ro((function(){zo(r,e)})),r.promise})),fo=function(){var t=new uo,n=Lo(t);this.promise=t,this.resolve=Yo(Ko,n),this.reject=Yo(Jo,n)},Oo.f=Uo=function(t){return t===Io||undefined===t?new fo(t):Do(t)},R(io)&&xo!==Object.prototype)){so=xo.then,jo||cn(xo,"then",(function(t,n){var e=this;return new Io((function(t,n){s(so,e,t,n)})).then(t,n)}),{unsafe:!0});try{delete xo.constructor}catch(t){}Oe&&Oe(xo,Ro)}kn({global:!0,constructor:!0,wrap:!0,forced:To},{Promise:Io}),me(Io,Eo,!1),vo=M(Eo),c&&vo&&!vo[Je]&&(lo=vo,po=Je,(ho={configurable:!0,get:function(){return this}}).get&&an(ho.get,po,{getter:!0}),ho.set&&an(ho.set,po,{setter:!0}),Ut.f(lo,po,ho));var Qo=yt("iterator"),$o=Array.prototype,Zo=yt("iterator"),ti=function(t){if(!T(t))return $(t,Zo)||$(t,"@@iterator")||ae[Xe(t)]},ni=TypeError,ei=function(t,n,e){var r,o;Ct(t);try{if(!(r=$(t,"return"))){if("throw"===n)throw e;return e}r=s(r,t)}catch(t){o=!0,r=t}if("throw"===n)throw e;if(o)throw r;return Ct(r),e},ri=TypeError,oi=function(t,n){this.stopped=t,this.result=n},ii=oi.prototype,ai=function(t,n,e){var r,o,i,a,c,u,f,l,p=e&&e.that,h=!(!e||!e.AS_ENTRIES),d=!(!e||!e.IS_RECORD),v=!(!e||!e.IS_ITERATOR),y=!(!e||!e.INTERRUPTED),g=br(n,p),m=function(t){return r&&ei(r,"normal",t),new oi(!0,t)},b=function(t){return h?(Ct(t),y?g(t[0],t[1],m):g(t[0],t[1])):y?g(t,m):g(t)};if(d)r=t.iterator;else if(v)r=t;else{if(!(o=ti(t)))throw ri(J(t)+" is not iterable");if(void 0!==(l=o)&&(ae.Array===l||$o[Qo]===l)){for(i=0,a=vn(t);a>i;i++)if((c=b(t[i]))&&U(ii,c))return c;return new oi(!1)}r=function(t,n){var e=arguments.length<2?ti(t):n;if(Q(e))return Ct(s(e,t));throw ni(J(t)+" is not iterable")}(t,o)}for(u=d?t.next:r.next;!(f=s(u,r)).done;){try{c=b(f.value)}catch(t){ei(r,"throw",t)}if("object"==typeof c&&c&&U(ii,c))return c}return new oi(!1)},ci=yt("iterator"),ui=!1;try{var fi=0,si={next:function(){return{done:!!fi++}},return:function(){ui=!0}};si[ci]=function(){return this},Array.from(si,(function(){throw 2}))}catch(t){}var li=wo.CONSTRUCTOR||!function(t,n){if(!n&&!ui)return!1;var e=!1;try{var r={};r[ci]=function(){return{next:function(){return{done:e=!0}}}},t(r)}catch(t){}return e}((function(t){io.all(t).then(void 0,(function(){}))}));kn({target:"Promise",stat:!0,forced:li},{all:function(t){var n=this,e=Oo.f(n),r=e.resolve,o=e.reject,i=oo((function(){var e=Q(n.resolve),i=[],a=0,c=1;ai(t,(function(t){var u=a++,f=!1;c++,s(e,n,t).then((function(t){f||(f=!0,i[u]=t,--c||r(i))}),o)})),--c||r(i)}));return i.error&&o(i.value),e.promise}});var pi=wo.CONSTRUCTOR,hi=io&&io.prototype;if(kn({target:"Promise",proto:!0,forced:pi,real:!0},{catch:function(t){return this.then(void 0,t)}}),R(io)){var di=M("Promise").prototype.catch;hi.catch!==di&&cn(hi,"catch",di,{unsafe:!0})}kn({target:"Promise",stat:!0,forced:li},{race:function(t){var n=this,e=Oo.f(n),r=e.reject,o=oo((function(){var o=Q(n.resolve);ai(t,(function(t){s(o,n,t).then(e.resolve,r)}))}));return o.error&&r(o.value),e.promise}}),kn({target:"Promise",stat:!0,forced:wo.CONSTRUCTOR},{reject:function(t){var n=Oo.f(this);return s(n.reject,void 0,t),n.promise}});var vi=wo.CONSTRUCTOR;M("Promise"),kn({target:"Promise",stat:!0,forced:vi},{resolve:function(t){return function(t,n){if(Ct(t),k(n)&&n.constructor===t)return n;var e=Oo.f(t);return(0,e.resolve)(n),e.promise}(this,t)}});var yi=String,gi=function(t){if("Symbol"===Xe(t))throw TypeError("Cannot convert a Symbol value to a string");return yi(t)},mi=b("".charAt),bi=b("".charCodeAt),wi=b("".slice),Si=function(t){return function(n,e){var r,o,i=gi(j(n)),a=ln(e),c=i.length;return a<0||a>=c?t?"":void 0:(r=bi(i,a))<55296||r>56319||a+1===c||(o=bi(i,a+1))<56320||o>57343?t?mi(i,a):r:t?wi(i,a,a+2):o-56320+(r-55296<<10)+65536}},Ai={codeAt:Si(!1),charAt:Si(!0)}.charAt,Oi="String Iterator",Pi=on.set,Ei=on.getterFor(Oi);Re(String,"String",(function(t){Pi(this,{type:Oi,string:gi(t),index:0})}),(function(){var t,n=Ei(this),e=n.string,r=n.index;return r>=e.length?Ne(void 0,!0):(t=Ai(e,r),n.index+=t.length,Ne(t,!1))}));var Ti={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},_i=Ot("span").classList,ji=_i&&_i.constructor&&_i.constructor.prototype,Li=ji===Object.prototype?void 0:ji,Ci=yt("iterator"),xi=yt("toStringTag"),Ii=He.values,Ri=function(t,n){if(t){if(t[Ci]!==Ii)try{Dt(t,Ci,Ii)}catch(n){t[Ci]=Ii}if(t[xi]||Dt(t,xi,n),Ti[n])for(var e in He)if(t[e]!==He[e])try{Dt(t,e,He[e])}catch(n){t[e]=He[e]}}};for(var Ni in Ti)Ri(i[Ni]&&i[Ni].prototype,Ni);Ri(Li,"DOMTokenList");var ki,Mi=Array.isArray||function(t){return"Array"==A(t)},Ui=TypeError,Di=function(t){if(t>9007199254740991)throw Ui("Maximum allowed index exceeded");return t},Hi=function(t,n,e){var r=wt(n);r in t?Ut.f(t,r,v(0,e)):t[r]=e},Bi=yt("species"),Wi=Array,zi=function(t,n){return new(function(t){var n;return Mi(t)&&(n=t.constructor,(fr(n)&&(n===Wi||Mi(n.prototype))||k(n)&&null===(n=n[Bi]))&&(n=void 0)),void 0===n?Wi:n}(t))(0===n?0:n)},Fi=yt("species"),Gi=yt("isConcatSpreadable"),Vi=F>=51||!a((function(){var t=[];return t[Gi]=!1,t.concat()[0]!==t})),Xi=function(t){if(!k(t))return!1;var n=t[Gi];return void 0!==n?!!n:Mi(t)},qi=!(Vi&&(ki="concat",F>=51||!a((function(){var t=[];return(t.constructor={})[Fi]=function(){return{foo:1}},1!==t[ki](Boolean).foo}))));kn({target:"Array",proto:!0,arity:1,forced:qi},{concat:function(t){var n,e,r,o,i,a=at(this),c=zi(a,0),u=0;for(n=-1,r=arguments.length;n<r;n++)if(Xi(i=-1===n?a:arguments[n]))for(o=vn(i),Di(u+o),e=0;e<o;e++,u++)e in i&&Hi(c,u,i[e]);else Di(u+1),Hi(c,u++,i);return c.length=u,c}});var Yi=function(){return Yi=Object.assign||function(t){for(var n,e=1,r=arguments.length;e<r;e++)for(var o in n=arguments[e])Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);return t},Yi.apply(this,arguments)},Ji={weixinJsSdkTicket:"",launchContainerQuery:".mazey-launch-app-selector",launchShowWeixinToBrowserImgUrl:"",canShowWeixinToBrowser:!1,extInfo:"",wexinServiceAccountAppId:"",openPlatformMobileAppId:"",genTagPrefixStr:"mazey-launch-app-btn-prefix-",launchShowWeixinToBrowserClassName:"mazey-launch-app-wx-to-browser",launchBtnClassName:"mazey-launch-app-inner-btn",launchBtnStyle:"",launchBtnText:"Launch App ;-)",launchErrorLink:"",canContinuousUpdating:!1,onMenuShareTimelineOptions:void 0,onMenuShareAppMessageOptions:void 0,isConClosed:!0,isWxDebug:!1,canLaunchApp:function(){return!0},launchBtnClick:function(){},launchReady:function(){}};return function(t){void 0===t&&(t=Ji);var n=Object.assign(Ji,t),e=n.weixinJsSdkTicket,r=n.launchContainerQuery,o=n.genTagPrefixStr,i=n.launchShowWeixinToBrowserImgUrl,a=n.canShowWeixinToBrowser,c=n.launchShowWeixinToBrowserClassName,u=n.launchBtnClassName,f=n.launchBtnStyle,s=n.launchBtnText,l=n.launchErrorLink,p=n.wexinServiceAccountAppId,h=n.openPlatformMobileAppId,d=n.canContinuousUpdating,v=n.onMenuShareTimelineOptions,y=n.onMenuShareAppMessageOptions,g=n.isConClosed,m=n.isWxDebug,b=n.canLaunchApp,w=n.launchBtnClick,S=n.launchReady,A=n.extInfo,O=window.mazey,P=window.sha1,E=window.wx,T=window.$||window.jQuery;O&&P&&E&&T||console.error("Launch App: wx or sha1 or $ or mazey is not found");var _=function(){},j=O.genCustomConsole("LaunchCon:",{isClosed:g});j.log("Launch App");var L={title:"",link:"",imgUrl:"",success:function(){},cancel:function(){}},C={title:"",desc:"",link:"",imgUrl:"",type:"",dataUrl:"",success:function(){},cancel:function(){}},x={title:document.title,link:location.href};function I(){O.addStyle("\n .mazey-launch-app-mask {\n position: fixed;\n top: 0; right: 0; bottom: 0; left: 0;\n background-color: rgba(0, 0, 0, .5);\n text-align: right;\n font-size: 0;\n white-space: nowrap;\n overflow: auto;\n z-index: 999;\n }\n .mazey-launch-app-img {\n display: inline-block;\n vertical-align: middle;\n text-align: left;\n font-size: 14px;\n white-space: normal;\n width: 50vw;\n margin: 0.5rem 0.5rem 0 0;\n }\n .mazey-launch-app-img:after {\n content: '';\n display: inline-block;\n height: 100%;\n vertical-align: middle;\n }\n ",{id:"mazey-launch-app-mask-style"}),window.LAUNCH_APP_HIDE_WEIXIN_BROWSER||(window.LAUNCH_APP_HIDE_WEIXIN_BROWSER=function(){T(".mazey-launch-app-mask").hide()}),0===T(".mazey-launch-app-mask").length?T("body").append("<div class='mazey-launch-app-mask' onclick='window.LAUNCH_APP_HIDE_WEIXIN_BROWSER()'>"+"<img\n class='mazey-launch-app-img ".concat(c,"'\n src='").concat(i,"'\n alt='Launch App'\n />")+"</div>"):T(".mazey-launch-app-mask").show()}function R(){j.log("renderWeixinLaunchTemplate"),function(t,n){void 0===t&&(t=""),void 0===n&&(n=""),j.log("renderWXOpenLaunchApp"),Promise.all([Promise.resolve(e||window.LAUNCH_APP_WEIXIN_JS_SDK_TICKET),Promise.resolve(P)]).then((function(e){j.log("allRes",e);var i=e[0],c=e[1],p=O.generateRndNum(7),h=i,d=(new Date).getTime(),g=c("jsapi_ticket="+h+"&noncestr="+p+"×tamp="+d+"&url="+location.href);return E.config({debug:m,appId:t,timestamp:d,nonceStr:p,signature:g,jsApiList:["showOptionMenu","onMenuShareTimeline","onMenuShareAppMessage"],openTagList:["wx-open-launch-app"]}),E.ready((function(){v&&(j.log("onMenuShareTimelineOptions",v),E.onMenuShareTimeline(v)),window.LAUNCH_APP_SHARE_TIMELINE=function(t){t=Yi(Yi({},L),t),j.log("window LAUNCH_APP_SHARE_TIMELINE",t),E.onMenuShareTimeline(t)},y&&(j.log("onMenuShareAppMessageOptions",y),E.onMenuShareAppMessage(y)),window.LAUNCH_APP_SHARE_APP_MESSAGE=function(t){t=Yi(Yi({},C),t),j.log("window LAUNCH_APP_SHARE_APP_MESSAGE",t),E.onMenuShareAppMessage(t)},window.LAUNCH_APP_READY=!0,S&&S();var t=function(){var t=T(r);j.log("containers",r,t,t.length),t.length>0&&t.each((function(t,e){var r=T(e).attr("data-launch-app-key");if(!r){var i=T(e).parents("[data-launch-app-key]:eq(0)");i.length>0&&(r=i.attr("data-launch-app-key"),j.log("keyEle",i,r))}r||(r=t);var c="mazey-launch-app-tag-".concat(r),p=T(".".concat(c," wx-open-launch-app")),h=T(e).attr("data-launch-app-ext-info");if(!h){var d=T(e).parents("[data-launch-app-ext-info]:eq(0)");d.length>0&&(h=d.attr("data-launch-app-ext-info"),j.log("eleExtInfoEle parents",d,h))}h&&(A=h);var v=T(e).attr("data-launch-app-error-link");if(!v){var y=T(e).parents("[data-launch-app-error-link]:eq(0)");y.length>0&&(v=y.attr("data-launch-app-error-link"),j.log("eleErrorLinkEle parents",y,v))}var g=l;v&&(g=v),0===p.length&&(T(e).addClass(c),j.log("success:",c),function(t){var e=o,r=e+t,i="<style>.".concat(u," {")+"opacity: 0;width: 100%;height: 100%;backgroud: transparent;color: #300f54;border: none;box-sizing: border-box;text-align: center;vertical-align: middle;"+f+"}</style>"+'<button class="'.concat(u,'">')+s+"</button>",c="<wx-open-launch-app id='"+r+"' appid='"+n+"' extinfo='".concat(A)+"' style='z-index: 99; position: absolute; width: 100%; height: 100%; opacity: 1; background: transparent; overflow: hidden; left: 0;'><script type='text/wxtag-template'>"+i+"<\/script></wx-open-launch-app>";T("."+t+":eq(0)").append(c);var l=document.getElementById(r);l&&(l.addEventListener("ready",(function(t){j.log("ready event",t)})),l.addEventListener("launch",(function(t){j.log("launch event",t),t.detail&&t.detail.extInfo&&j.log("launch extInfo",t.detail.extInfo)})),l.addEventListener("error",(function(t){j.error(t.detail),T("[id^='"+e+"']").hide(),a&&I(),g&&(j.log("realErrorLink",g),location.href=g)})),l.addEventListener("click",(function(t){j.log("click event",t),w&&w()})))}(c))}))};t(),_=t})),E.error((function(t){j.error(t)})),"success:launch_app"})).catch((function(t){j.error(t)}))}(p,h)}function N(t){j.log("appUpdated",t),!window.LAUNCH_APP_LOAD&&b(t)&&(R(),window.LAUNCH_APP_LOAD=!0),d&&window.LAUNCH_APP_LOAD&&b(t)&&_()}function k(){j.log("appBeforeDestroy",k),window.LAUNCH_APP_LOAD=null,window.LAUNCH_APP_HIDE_WEIXIN_BROWSER=null}return L=Yi(Yi({},L),x),C=Yi(Yi({},C),x),window.LAUNCH_APP_UPDATE=N,window.LAUNCH_APP_BEFORE_DESTROY=k,window.LAUNCH_APP_SHOW_WEIXIN_TO_BROWSER=I,{LAUNCH_APP_UPDATE:N,LAUNCH_APP_BEFORE_DESTROY:k,LAUNCH_APP_SHOW_WEIXIN_TO_BROWSER:I,LAUNCH_APP_SHARE_TIMELINE:function(t){j.log("opt",t)},LAUNCH_APP_SHARE_APP_MESSAGE:function(t){j.log("opt",t)},start:N,update:N,destroy:k}}}();
|
|
1
|
+
var LAUNCH_APP=function(){"use strict";var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(t,n){return t(n={exports:{}},n.exports),n.exports}var e,r,o=function(t){return t&&t.Math==Math&&t},i=o("object"==typeof globalThis&&globalThis)||o("object"==typeof window&&window)||o("object"==typeof self&&self)||o("object"==typeof t&&t)||function(){return this}()||Function("return this")(),a=function(t){try{return!!t()}catch(t){return!0}},c=!a((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),u=!a((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),f=Function.prototype.call,s=u?f.bind(f):function(){return f.apply(f,arguments)},l={}.propertyIsEnumerable,p=Object.getOwnPropertyDescriptor,h=p&&!l.call({1:2},1)?function(t){var n=p(this,t);return!!n&&n.enumerable}:l,d={f:h},v=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}},y=Function.prototype,g=y.call,m=u&&y.bind.bind(g,g),b=u?m:function(t){return function(){return g.apply(t,arguments)}},w=b({}.toString),S=b("".slice),A=function(t){return S(w(t),8,-1)},O=Object,E=b("".split),P=a((function(){return!O("z").propertyIsEnumerable(0)}))?function(t){return"String"==A(t)?E(t,""):O(t)}:O,_=function(t){return null==t},T=TypeError,L=function(t){if(_(t))throw T("Can't call method on "+t);return t},j=function(t){return P(L(t))},C="object"==typeof document&&document.all,x={all:C,IS_HTMLDDA:void 0===C&&void 0!==C},I=x.all,R=x.IS_HTMLDDA?function(t){return"function"==typeof t||t===I}:function(t){return"function"==typeof t},k=x.all,N=x.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:R(t)||t===k}:function(t){return"object"==typeof t?null!==t:R(t)},M=function(t,n){return arguments.length<2?(e=i[t],R(e)?e:void 0):i[t]&&i[t][n];var e},U=b({}.isPrototypeOf),D="undefined"!=typeof navigator&&String(navigator.userAgent)||"",H=i.process,B=i.Deno,W=H&&H.versions||B&&B.version,z=W&&W.v8;z&&(r=(e=z.split("."))[0]>0&&e[0]<4?1:+(e[0]+e[1])),!r&&D&&(!(e=D.match(/Edge\/(\d+)/))||e[1]>=74)&&(e=D.match(/Chrome\/(\d+)/))&&(r=+e[1]);var F=r,G=!!Object.getOwnPropertySymbols&&!a((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&F&&F<41})),V=G&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,X=Object,q=V?function(t){return"symbol"==typeof t}:function(t){var n=M("Symbol");return R(n)&&U(n.prototype,X(t))},Y=String,J=function(t){try{return Y(t)}catch(t){return"Object"}},K=TypeError,Q=function(t){if(R(t))return t;throw K(J(t)+" is not a function")},$=function(t,n){var e=t[n];return _(e)?void 0:Q(e)},Z=TypeError,tt=Object.defineProperty,nt=function(t,n){try{tt(i,t,{value:n,configurable:!0,writable:!0})}catch(e){i[t]=n}return n},et="__core-js_shared__",rt=i[et]||nt(et,{}),ot=n((function(t){(t.exports=function(t,n){return rt[t]||(rt[t]=void 0!==n?n:{})})("versions",[]).push({version:"3.30.1",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.30.1/LICENSE",source:"https://github.com/zloirock/core-js"})})),it=Object,at=function(t){return it(L(t))},ct=b({}.hasOwnProperty),ut=Object.hasOwn||function(t,n){return ct(at(t),n)},ft=0,st=Math.random(),lt=b(1..toString),pt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+lt(++ft+st,36)},ht=i.Symbol,dt=ot("wks"),vt=V?ht.for||ht:ht&&ht.withoutSetter||pt,yt=function(t){return ut(dt,t)||(dt[t]=G&&ut(ht,t)?ht[t]:vt("Symbol."+t)),dt[t]},gt=TypeError,mt=yt("toPrimitive"),bt=function(t,n){if(!N(t)||q(t))return t;var e,r=$(t,mt);if(r){if(void 0===n&&(n="default"),e=s(r,t,n),!N(e)||q(e))return e;throw gt("Can't convert object to primitive value")}return void 0===n&&(n="number"),function(t,n){var e,r;if("string"===n&&R(e=t.toString)&&!N(r=s(e,t)))return r;if(R(e=t.valueOf)&&!N(r=s(e,t)))return r;if("string"!==n&&R(e=t.toString)&&!N(r=s(e,t)))return r;throw Z("Can't convert object to primitive value")}(t,n)},wt=function(t){var n=bt(t,"string");return q(n)?n:n+""},St=i.document,At=N(St)&&N(St.createElement),Ot=function(t){return At?St.createElement(t):{}},Et=!c&&!a((function(){return 7!=Object.defineProperty(Ot("div"),"a",{get:function(){return 7}}).a})),Pt=Object.getOwnPropertyDescriptor,_t={f:c?Pt:function(t,n){if(t=j(t),n=wt(n),Et)try{return Pt(t,n)}catch(t){}if(ut(t,n))return v(!s(d.f,t,n),t[n])}},Tt=c&&a((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Lt=String,jt=TypeError,Ct=function(t){if(N(t))return t;throw jt(Lt(t)+" is not an object")},xt=TypeError,It=Object.defineProperty,Rt=Object.getOwnPropertyDescriptor,kt="enumerable",Nt="configurable",Mt="writable",Ut={f:c?Tt?function(t,n,e){if(Ct(t),n=wt(n),Ct(e),"function"==typeof t&&"prototype"===n&&"value"in e&&Mt in e&&!e[Mt]){var r=Rt(t,n);r&&r[Mt]&&(t[n]=e.value,e={configurable:Nt in e?e[Nt]:r[Nt],enumerable:kt in e?e[kt]:r[kt],writable:!1})}return It(t,n,e)}:It:function(t,n,e){if(Ct(t),n=wt(n),Ct(e),Et)try{return It(t,n,e)}catch(t){}if("get"in e||"set"in e)throw xt("Accessors not supported");return"value"in e&&(t[n]=e.value),t}},Dt=c?function(t,n,e){return Ut.f(t,n,v(1,e))}:function(t,n,e){return t[n]=e,t},Ht=Function.prototype,Bt=c&&Object.getOwnPropertyDescriptor,Wt=ut(Ht,"name"),zt={EXISTS:Wt,PROPER:Wt&&"something"===function(){}.name,CONFIGURABLE:Wt&&(!c||c&&Bt(Ht,"name").configurable)},Ft=b(Function.toString);R(rt.inspectSource)||(rt.inspectSource=function(t){return Ft(t)});var Gt,Vt,Xt,qt=rt.inspectSource,Yt=i.WeakMap,Jt=R(Yt)&&/native code/.test(String(Yt)),Kt=ot("keys"),Qt=function(t){return Kt[t]||(Kt[t]=pt(t))},$t={},Zt="Object already initialized",tn=i.TypeError,nn=i.WeakMap;if(Jt||rt.state){var en=rt.state||(rt.state=new nn);en.get=en.get,en.has=en.has,en.set=en.set,Gt=function(t,n){if(en.has(t))throw tn(Zt);return n.facade=t,en.set(t,n),n},Vt=function(t){return en.get(t)||{}},Xt=function(t){return en.has(t)}}else{var rn=Qt("state");$t[rn]=!0,Gt=function(t,n){if(ut(t,rn))throw tn(Zt);return n.facade=t,Dt(t,rn,n),n},Vt=function(t){return ut(t,rn)?t[rn]:{}},Xt=function(t){return ut(t,rn)}}var on={set:Gt,get:Vt,has:Xt,enforce:function(t){return Xt(t)?Vt(t):Gt(t,{})},getterFor:function(t){return function(n){var e;if(!N(n)||(e=Vt(n)).type!==t)throw tn("Incompatible receiver, "+t+" required");return e}}},an=n((function(t){var n=zt.CONFIGURABLE,e=on.enforce,r=on.get,o=String,i=Object.defineProperty,u=b("".slice),f=b("".replace),s=b([].join),l=c&&!a((function(){return 8!==i((function(){}),"length",{value:8}).length})),p=String(String).split("String"),h=t.exports=function(t,r,a){"Symbol("===u(o(r),0,7)&&(r="["+f(o(r),/^Symbol\(([^)]*)\)/,"$1")+"]"),a&&a.getter&&(r="get "+r),a&&a.setter&&(r="set "+r),(!ut(t,"name")||n&&t.name!==r)&&(c?i(t,"name",{value:r,configurable:!0}):t.name=r),l&&a&&ut(a,"arity")&&t.length!==a.arity&&i(t,"length",{value:a.arity});try{a&&ut(a,"constructor")&&a.constructor?c&&i(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var h=e(t);return ut(h,"source")||(h.source=s(p,"string"==typeof r?r:"")),t};Function.prototype.toString=h((function(){return R(this)&&r(this).source||qt(this)}),"toString")})),cn=function(t,n,e,r){r||(r={});var o=r.enumerable,i=void 0!==r.name?r.name:n;if(R(e)&&an(e,i,r),r.global)o?t[n]=e:nt(n,e);else{try{r.unsafe?t[n]&&(o=!0):delete t[n]}catch(t){}o?t[n]=e:Ut.f(t,n,{value:e,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return t},un=Math.ceil,fn=Math.floor,sn=Math.trunc||function(t){var n=+t;return(n>0?fn:un)(n)},ln=function(t){var n=+t;return n!=n||0===n?0:sn(n)},pn=Math.max,hn=Math.min,dn=Math.min,vn=function(t){return(n=t.length)>0?dn(ln(n),9007199254740991):0;var n},yn=function(t){return function(n,e,r){var o,i=j(n),a=vn(i),c=function(t,n){var e=ln(t);return e<0?pn(e+n,0):hn(e,n)}(r,a);if(t&&e!=e){for(;a>c;)if((o=i[c++])!=o)return!0}else for(;a>c;c++)if((t||c in i)&&i[c]===e)return t||c||0;return!t&&-1}},gn={includes:yn(!0),indexOf:yn(!1)}.indexOf,mn=b([].push),bn=function(t,n){var e,r=j(t),o=0,i=[];for(e in r)!ut($t,e)&&ut(r,e)&&mn(i,e);for(;n.length>o;)ut(r,e=n[o++])&&(~gn(i,e)||mn(i,e));return i},wn=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Sn=wn.concat("length","prototype"),An={f:Object.getOwnPropertyNames||function(t){return bn(t,Sn)}},On={f:Object.getOwnPropertySymbols},En=b([].concat),Pn=M("Reflect","ownKeys")||function(t){var n=An.f(Ct(t)),e=On.f;return e?En(n,e(t)):n},_n=function(t,n,e){for(var r=Pn(n),o=Ut.f,i=_t.f,a=0;a<r.length;a++){var c=r[a];ut(t,c)||e&&ut(e,c)||o(t,c,i(n,c))}},Tn=/#|\.prototype\./,Ln=function(t,n){var e=Cn[jn(t)];return e==In||e!=xn&&(R(n)?a(n):!!n)},jn=Ln.normalize=function(t){return String(t).replace(Tn,".").toLowerCase()},Cn=Ln.data={},xn=Ln.NATIVE="N",In=Ln.POLYFILL="P",Rn=Ln,kn=_t.f,Nn=function(t,n){var e,r,o,a,c,u=t.target,f=t.global,s=t.stat;if(e=f?i:s?i[u]||nt(u,{}):(i[u]||{}).prototype)for(r in n){if(a=n[r],o=t.dontCallGetSet?(c=kn(e,r))&&c.value:e[r],!Rn(f?r:u+(s?".":"#")+r,t.forced)&&void 0!==o){if(typeof a==typeof o)continue;_n(a,o)}(t.sham||o&&o.sham)&&Dt(a,"sham",!0),cn(e,r,a,t)}},Mn=Object.keys||function(t){return bn(t,wn)},Un=Object.assign,Dn=Object.defineProperty,Hn=b([].concat),Bn=!Un||a((function(){if(c&&1!==Un({b:1},Un(Dn({},"a",{enumerable:!0,get:function(){Dn(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},n={},e=Symbol(),r="abcdefghijklmnopqrst";return t[e]=7,r.split("").forEach((function(t){n[t]=t})),7!=Un({},t)[e]||Mn(Un({},n)).join("")!=r}))?function(t,n){for(var e=at(t),r=arguments.length,o=1,i=On.f,a=d.f;r>o;)for(var u,f=P(arguments[o++]),l=i?Hn(Mn(f),i(f)):Mn(f),p=l.length,h=0;p>h;)u=l[h++],c&&!s(a,f,u)||(e[u]=f[u]);return e}:Un;Nn({target:"Object",stat:!0,arity:2,forced:Object.assign!==Bn},{assign:Bn});var Wn=Array.isArray||function(t){return"Array"==A(t)},zn=TypeError,Fn=function(t){if(t>9007199254740991)throw zn("Maximum allowed index exceeded");return t},Gn=function(t,n,e){var r=wt(n);r in t?Ut.f(t,r,v(0,e)):t[r]=e},Vn={};Vn[yt("toStringTag")]="z";var Xn="[object z]"===String(Vn),qn=yt("toStringTag"),Yn=Object,Jn="Arguments"==A(function(){return arguments}()),Kn=Xn?A:function(t){var n,e,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=function(t,n){try{return t[n]}catch(t){}}(n=Yn(t),qn))?e:Jn?A(n):"Object"==(r=A(n))&&R(n.callee)?"Arguments":r},Qn=function(){},$n=[],Zn=M("Reflect","construct"),te=/^\s*(?:class|function)\b/,ne=b(te.exec),ee=!te.exec(Qn),re=function(t){if(!R(t))return!1;try{return Zn(Qn,$n,t),!0}catch(t){return!1}},oe=function(t){if(!R(t))return!1;switch(Kn(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return ee||!!ne(te,qt(t))}catch(t){return!0}};oe.sham=!0;var ie,ae=!Zn||a((function(){var t;return re(re.call)||!re(Object)||!re((function(){t=!0}))||t}))?oe:re,ce=yt("species"),ue=Array,fe=function(t,n){return new(function(t){var n;return Wn(t)&&(n=t.constructor,(ae(n)&&(n===ue||Wn(n.prototype))||N(n)&&null===(n=n[ce]))&&(n=void 0)),void 0===n?ue:n}(t))(0===n?0:n)},se=yt("species"),le=yt("isConcatSpreadable"),pe=F>=51||!a((function(){var t=[];return t[le]=!1,t.concat()[0]!==t})),he=function(t){if(!N(t))return!1;var n=t[le];return void 0!==n?!!n:Wn(t)},de=!(pe&&(ie="concat",F>=51||!a((function(){var t=[];return(t.constructor={})[se]=function(){return{foo:1}},1!==t[ie](Boolean).foo}))));Nn({target:"Array",proto:!0,arity:1,forced:de},{concat:function(t){var n,e,r,o,i,a=at(this),c=fe(a,0),u=0;for(n=-1,r=arguments.length;n<r;n++)if(he(i=-1===n?a:arguments[n]))for(o=vn(i),Fn(u+o),e=0;e<o;e++,u++)e in i&&Gn(c,u,i[e]);else Fn(u+1),Gn(c,u++,i);return c.length=u,c}});var ve,ye=c&&!Tt?Object.defineProperties:function(t,n){Ct(t);for(var e,r=j(n),o=Mn(n),i=o.length,a=0;i>a;)Ut.f(t,e=o[a++],r[e]);return t},ge={f:ye},me=M("document","documentElement"),be="prototype",we="script",Se=Qt("IE_PROTO"),Ae=function(){},Oe=function(t){return"<"+we+">"+t+"</"+we+">"},Ee=function(t){t.write(Oe("")),t.close();var n=t.parentWindow.Object;return t=null,n},Pe=function(){try{ve=new ActiveXObject("htmlfile")}catch(t){}var t,n,e;Pe="undefined"!=typeof document?document.domain&&ve?Ee(ve):(n=Ot("iframe"),e="java"+we+":",n.style.display="none",me.appendChild(n),n.src=String(e),(t=n.contentWindow.document).open(),t.write(Oe("document.F=Object")),t.close(),t.F):Ee(ve);for(var r=wn.length;r--;)delete Pe[be][wn[r]];return Pe()};$t[Se]=!0;var _e=Object.create||function(t,n){var e;return null!==t?(Ae[be]=Ct(t),e=new Ae,Ae[be]=null,e[Se]=t):e=Pe(),void 0===n?e:ge.f(e,n)},Te=Ut.f,Le=yt("unscopables"),je=Array.prototype;null==je[Le]&&Te(je,Le,{configurable:!0,value:_e(null)});var Ce,xe,Ie,Re=function(t){je[Le][t]=!0},ke={},Ne=!a((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),Me=Qt("IE_PROTO"),Ue=Object,De=Ue.prototype,He=Ne?Ue.getPrototypeOf:function(t){var n=at(t);if(ut(n,Me))return n[Me];var e=n.constructor;return R(e)&&n instanceof e?e.prototype:n instanceof Ue?De:null},Be=yt("iterator"),We=!1;[].keys&&("next"in(Ie=[].keys())?(xe=He(He(Ie)))!==Object.prototype&&(Ce=xe):We=!0);var ze=!N(Ce)||a((function(){var t={};return Ce[Be].call(t)!==t}));ze&&(Ce={}),R(Ce[Be])||cn(Ce,Be,(function(){return this}));var Fe={IteratorPrototype:Ce,BUGGY_SAFARI_ITERATORS:We},Ge=Ut.f,Ve=yt("toStringTag"),Xe=function(t,n,e){t&&!e&&(t=t.prototype),t&&!ut(t,Ve)&&Ge(t,Ve,{configurable:!0,value:n})},qe=Fe.IteratorPrototype,Ye=function(){return this},Je=String,Ke=TypeError,Qe=Object.setPrototypeOf||("__proto__"in{}?function(){var t,n=!1,e={};try{t=function(t,n,e){try{return b(Q(Object.getOwnPropertyDescriptor(t,n)[e]))}catch(t){}}(Object.prototype,"__proto__","set"),t(e,[]),n=e instanceof Array}catch(t){}return function(e,r){return Ct(e),function(t){if("object"==typeof t||R(t))return t;throw Ke("Can't set "+Je(t)+" as a prototype")}(r),n?t(e,r):e.__proto__=r,e}}():void 0),$e=zt.PROPER,Ze=zt.CONFIGURABLE,tr=Fe.IteratorPrototype,nr=Fe.BUGGY_SAFARI_ITERATORS,er=yt("iterator"),rr="keys",or="values",ir="entries",ar=function(){return this},cr=function(t,n,e,r,o,i,a){!function(t,n,e,r){var o=n+" Iterator";t.prototype=_e(qe,{next:v(+!r,e)}),Xe(t,o,!1),ke[o]=Ye}(e,n,r);var c,u,f,l=function(t){if(t===o&&g)return g;if(!nr&&t in d)return d[t];switch(t){case rr:case or:case ir:return function(){return new e(this,t)}}return function(){return new e(this)}},p=n+" Iterator",h=!1,d=t.prototype,y=d[er]||d["@@iterator"]||o&&d[o],g=!nr&&y||l(o),m="Array"==n&&d.entries||y;if(m&&(c=He(m.call(new t)))!==Object.prototype&&c.next&&(He(c)!==tr&&(Qe?Qe(c,tr):R(c[er])||cn(c,er,ar)),Xe(c,p,!0)),$e&&o==or&&y&&y.name!==or&&(Ze?Dt(d,"name",or):(h=!0,g=function(){return s(y,this)})),o)if(u={values:l(or),keys:i?g:l(rr),entries:l(ir)},a)for(f in u)(nr||h||!(f in d))&&cn(d,f,u[f]);else Nn({target:n,proto:!0,forced:nr||h},u);return d[er]!==g&&cn(d,er,g,{name:o}),ke[n]=g,u},ur=function(t,n){return{value:t,done:n}},fr=Ut.f,sr="Array Iterator",lr=on.set,pr=on.getterFor(sr),hr=cr(Array,"Array",(function(t,n){lr(this,{type:sr,target:j(t),index:0,kind:n})}),(function(){var t=pr(this),n=t.target,e=t.kind,r=t.index++;return!n||r>=n.length?(t.target=void 0,ur(void 0,!0)):ur("keys"==e?r:"values"==e?n[r]:[r,n[r]],!1)}),"values"),dr=ke.Arguments=ke.Array;if(Re("keys"),Re("values"),Re("entries"),c&&"values"!==dr.name)try{fr(dr,"name",{value:"values"})}catch(t){}var vr=Xn?{}.toString:function(){return"[object "+Kn(this)+"]"};Xn||cn(Object.prototype,"toString",vr,{unsafe:!0});var yr,gr,mr,br,wr="undefined"!=typeof process&&"process"==A(process),Sr=yt("species"),Ar=TypeError,Or=TypeError,Er=yt("species"),Pr=function(t,n){var e,r=Ct(t).constructor;return void 0===r||_(e=Ct(r)[Er])?n:function(t){if(ae(t))return t;throw Or(J(t)+" is not a constructor")}(e)},_r=Function.prototype,Tr=_r.apply,Lr=_r.call,jr="object"==typeof Reflect&&Reflect.apply||(u?Lr.bind(Tr):function(){return Lr.apply(Tr,arguments)}),Cr=function(t){if("Function"===A(t))return b(t)},xr=Cr(Cr.bind),Ir=function(t,n){return Q(t),void 0===n?t:u?xr(t,n):function(){return t.apply(n,arguments)}},Rr=b([].slice),kr=TypeError,Nr=/(?:ipad|iphone|ipod).*applewebkit/i.test(D),Mr=i.setImmediate,Ur=i.clearImmediate,Dr=i.process,Hr=i.Dispatch,Br=i.Function,Wr=i.MessageChannel,zr=i.String,Fr=0,Gr={},Vr="onreadystatechange";a((function(){yr=i.location}));var Xr=function(t){if(ut(Gr,t)){var n=Gr[t];delete Gr[t],n()}},qr=function(t){return function(){Xr(t)}},Yr=function(t){Xr(t.data)},Jr=function(t){i.postMessage(zr(t),yr.protocol+"//"+yr.host)};Mr&&Ur||(Mr=function(t){!function(t,n){if(t<n)throw kr("Not enough arguments")}(arguments.length,1);var n=R(t)?t:Br(t),e=Rr(arguments,1);return Gr[++Fr]=function(){jr(n,void 0,e)},gr(Fr),Fr},Ur=function(t){delete Gr[t]},wr?gr=function(t){Dr.nextTick(qr(t))}:Hr&&Hr.now?gr=function(t){Hr.now(qr(t))}:Wr&&!Nr?(br=(mr=new Wr).port2,mr.port1.onmessage=Yr,gr=Ir(br.postMessage,br)):i.addEventListener&&R(i.postMessage)&&!i.importScripts&&yr&&"file:"!==yr.protocol&&!a(Jr)?(gr=Jr,i.addEventListener("message",Yr,!1)):gr=Vr in Ot("script")?function(t){me.appendChild(Ot("script"))[Vr]=function(){me.removeChild(this),Xr(t)}}:function(t){setTimeout(qr(t),0)});var Kr={set:Mr,clear:Ur},Qr=function(){this.head=null,this.tail=null};Qr.prototype={add:function(t){var n={item:t,next:null},e=this.tail;e?e.next=n:this.head=n,this.tail=n},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}};var $r,Zr,to,no,eo,ro=Qr,oo=/ipad|iphone|ipod/i.test(D)&&"undefined"!=typeof Pebble,io=/web0s(?!.*chrome)/i.test(D),ao=_t.f,co=Kr.set,uo=i.MutationObserver||i.WebKitMutationObserver,fo=i.document,so=i.process,lo=i.Promise,po=ao(i,"queueMicrotask"),ho=po&&po.value;if(!ho){var vo=new ro,yo=function(){var t,n;for(wr&&(t=so.domain)&&t.exit();n=vo.get();)try{n()}catch(t){throw vo.head&&$r(),t}t&&t.enter()};Nr||wr||io||!uo||!fo?!oo&&lo&&lo.resolve?((no=lo.resolve(void 0)).constructor=lo,eo=Ir(no.then,no),$r=function(){eo(yo)}):wr?$r=function(){so.nextTick(yo)}:(co=Ir(co,i),$r=function(){co(yo)}):(Zr=!0,to=fo.createTextNode(""),new uo(yo).observe(to,{characterData:!0}),$r=function(){to.data=Zr=!Zr}),ho=function(t){vo.head||$r(),vo.add(t)}}var go=ho,mo=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},bo=i.Promise,wo="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,So=!wo&&!wr&&"object"==typeof window&&"object"==typeof document;bo&&bo.prototype;var Ao,Oo,Eo,Po,_o,To,Lo,jo=yt("species"),Co=!1,xo=R(i.PromiseRejectionEvent),Io=Rn("Promise",(function(){var t=qt(bo),n=t!==String(bo);if(!n&&66===F)return!0;if(!F||F<51||!/native code/.test(t)){var e=new bo((function(t){t(1)})),r=function(t){t((function(){}),(function(){}))};if((e.constructor={})[jo]=r,!(Co=e.then((function(){}))instanceof r))return!0}return!n&&(So||wo)&&!xo})),Ro={CONSTRUCTOR:Io,REJECTION_EVENT:xo,SUBCLASSING:Co},ko=TypeError,No=function(t){var n,e;this.promise=new t((function(t,r){if(void 0!==n||void 0!==e)throw ko("Bad Promise constructor");n=t,e=r})),this.resolve=Q(n),this.reject=Q(e)},Mo={f:function(t){return new No(t)}},Uo=Kr.set,Do="Promise",Ho=Ro.CONSTRUCTOR,Bo=Ro.REJECTION_EVENT,Wo=Ro.SUBCLASSING,zo=on.getterFor(Do),Fo=on.set,Go=bo&&bo.prototype,Vo=bo,Xo=Go,qo=i.TypeError,Yo=i.document,Jo=i.process,Ko=Mo.f,Qo=Ko,$o=!!(Yo&&Yo.createEvent&&i.dispatchEvent),Zo="unhandledrejection",ti=function(t){var n;return!(!N(t)||!R(n=t.then))&&n},ni=function(t,n){var e,r,o,i=n.value,a=1==n.state,c=a?t.ok:t.fail,u=t.resolve,f=t.reject,l=t.domain;try{c?(a||(2===n.rejection&&ai(n),n.rejection=1),!0===c?e=i:(l&&l.enter(),e=c(i),l&&(l.exit(),o=!0)),e===t.promise?f(qo("Promise-chain cycle")):(r=ti(e))?s(r,e,u,f):u(e)):f(i)}catch(t){l&&!o&&l.exit(),f(t)}},ei=function(t,n){t.notified||(t.notified=!0,go((function(){for(var e,r=t.reactions;e=r.get();)ni(e,t);t.notified=!1,n&&!t.rejection&&oi(t)})))},ri=function(t,n,e){var r,o;$o?((r=Yo.createEvent("Event")).promise=n,r.reason=e,r.initEvent(t,!1,!0),i.dispatchEvent(r)):r={promise:n,reason:e},!Bo&&(o=i["on"+t])?o(r):t===Zo&&function(t,n){try{1==arguments.length?console.error(t):console.error(t,n)}catch(t){}}("Unhandled promise rejection",e)},oi=function(t){s(Uo,i,(function(){var n,e=t.facade,r=t.value;if(ii(t)&&(n=mo((function(){wr?Jo.emit("unhandledRejection",r,e):ri(Zo,e,r)})),t.rejection=wr||ii(t)?2:1,n.error))throw n.value}))},ii=function(t){return 1!==t.rejection&&!t.parent},ai=function(t){s(Uo,i,(function(){var n=t.facade;wr?Jo.emit("rejectionHandled",n):ri("rejectionhandled",n,t.value)}))},ci=function(t,n,e){return function(r){t(n,r,e)}},ui=function(t,n,e){t.done||(t.done=!0,e&&(t=e),t.value=n,t.state=2,ei(t,!0))},fi=function(t,n,e){if(!t.done){t.done=!0,e&&(t=e);try{if(t.facade===n)throw qo("Promise can't be resolved itself");var r=ti(n);r?go((function(){var e={done:!1};try{s(r,n,ci(fi,e,t),ci(ui,e,t))}catch(n){ui(e,n,t)}})):(t.value=n,t.state=1,ei(t,!1))}catch(n){ui({done:!1},n,t)}}};if(Ho&&(Xo=(Vo=function(t){!function(t,n){if(U(n,t))return t;throw Ar("Incorrect invocation")}(this,Xo),Q(t),s(Ao,this);var n=zo(this);try{t(ci(fi,n),ci(ui,n))}catch(t){ui(n,t)}}).prototype,(Ao=function(t){Fo(this,{type:Do,done:!1,notified:!1,parent:!1,reactions:new ro,rejection:!1,state:0,value:void 0})}).prototype=cn(Xo,"then",(function(t,n){var e=zo(this),r=Ko(Pr(this,Vo));return e.parent=!0,r.ok=!R(t)||t,r.fail=R(n)&&n,r.domain=wr?Jo.domain:void 0,0==e.state?e.reactions.add(r):go((function(){ni(r,e)})),r.promise})),Oo=function(){var t=new Ao,n=zo(t);this.promise=t,this.resolve=ci(fi,n),this.reject=ci(ui,n)},Mo.f=Ko=function(t){return t===Vo||undefined===t?new Oo(t):Qo(t)},R(bo)&&Go!==Object.prototype)){Eo=Go.then,Wo||cn(Go,"then",(function(t,n){var e=this;return new Vo((function(t,n){s(Eo,e,t,n)})).then(t,n)}),{unsafe:!0});try{delete Go.constructor}catch(t){}Qe&&Qe(Go,Xo)}Nn({global:!0,constructor:!0,wrap:!0,forced:Ho},{Promise:Vo}),Xe(Vo,Do,!1),Lo=M(Do),c&&Lo&&!Lo[Sr]&&(Po=Lo,_o=Sr,(To={configurable:!0,get:function(){return this}}).get&&an(To.get,_o,{getter:!0}),To.set&&an(To.set,_o,{setter:!0}),Ut.f(Po,_o,To));var si=yt("iterator"),li=Array.prototype,pi=yt("iterator"),hi=function(t){if(!_(t))return $(t,pi)||$(t,"@@iterator")||ke[Kn(t)]},di=TypeError,vi=function(t,n,e){var r,o;Ct(t);try{if(!(r=$(t,"return"))){if("throw"===n)throw e;return e}r=s(r,t)}catch(t){o=!0,r=t}if("throw"===n)throw e;if(o)throw r;return Ct(r),e},yi=TypeError,gi=function(t,n){this.stopped=t,this.result=n},mi=gi.prototype,bi=function(t,n,e){var r,o,i,a,c,u,f,l,p=e&&e.that,h=!(!e||!e.AS_ENTRIES),d=!(!e||!e.IS_RECORD),v=!(!e||!e.IS_ITERATOR),y=!(!e||!e.INTERRUPTED),g=Ir(n,p),m=function(t){return r&&vi(r,"normal",t),new gi(!0,t)},b=function(t){return h?(Ct(t),y?g(t[0],t[1],m):g(t[0],t[1])):y?g(t,m):g(t)};if(d)r=t.iterator;else if(v)r=t;else{if(!(o=hi(t)))throw yi(J(t)+" is not iterable");if(void 0!==(l=o)&&(ke.Array===l||li[si]===l)){for(i=0,a=vn(t);a>i;i++)if((c=b(t[i]))&&U(mi,c))return c;return new gi(!1)}r=function(t,n){var e=arguments.length<2?hi(t):n;if(Q(e))return Ct(s(e,t));throw di(J(t)+" is not iterable")}(t,o)}for(u=d?t.next:r.next;!(f=s(u,r)).done;){try{c=b(f.value)}catch(t){vi(r,"throw",t)}if("object"==typeof c&&c&&U(mi,c))return c}return new gi(!1)},wi=yt("iterator"),Si=!1;try{var Ai=0,Oi={next:function(){return{done:!!Ai++}},return:function(){Si=!0}};Oi[wi]=function(){return this},Array.from(Oi,(function(){throw 2}))}catch(t){}var Ei=Ro.CONSTRUCTOR||!function(t,n){if(!n&&!Si)return!1;var e=!1;try{var r={};r[wi]=function(){return{next:function(){return{done:e=!0}}}},t(r)}catch(t){}return e}((function(t){bo.all(t).then(void 0,(function(){}))}));Nn({target:"Promise",stat:!0,forced:Ei},{all:function(t){var n=this,e=Mo.f(n),r=e.resolve,o=e.reject,i=mo((function(){var e=Q(n.resolve),i=[],a=0,c=1;bi(t,(function(t){var u=a++,f=!1;c++,s(e,n,t).then((function(t){f||(f=!0,i[u]=t,--c||r(i))}),o)})),--c||r(i)}));return i.error&&o(i.value),e.promise}});var Pi=Ro.CONSTRUCTOR,_i=bo&&bo.prototype;if(Nn({target:"Promise",proto:!0,forced:Pi,real:!0},{catch:function(t){return this.then(void 0,t)}}),R(bo)){var Ti=M("Promise").prototype.catch;_i.catch!==Ti&&cn(_i,"catch",Ti,{unsafe:!0})}Nn({target:"Promise",stat:!0,forced:Ei},{race:function(t){var n=this,e=Mo.f(n),r=e.reject,o=mo((function(){var o=Q(n.resolve);bi(t,(function(t){s(o,n,t).then(e.resolve,r)}))}));return o.error&&r(o.value),e.promise}}),Nn({target:"Promise",stat:!0,forced:Ro.CONSTRUCTOR},{reject:function(t){var n=Mo.f(this);return s(n.reject,void 0,t),n.promise}});var Li=Ro.CONSTRUCTOR;M("Promise"),Nn({target:"Promise",stat:!0,forced:Li},{resolve:function(t){return function(t,n){if(Ct(t),N(n)&&n.constructor===t)return n;var e=Mo.f(t);return(0,e.resolve)(n),e.promise}(this,t)}});var ji=String,Ci=function(t){if("Symbol"===Kn(t))throw TypeError("Cannot convert a Symbol value to a string");return ji(t)},xi=b("".charAt),Ii=b("".charCodeAt),Ri=b("".slice),ki=function(t){return function(n,e){var r,o,i=Ci(L(n)),a=ln(e),c=i.length;return a<0||a>=c?t?"":void 0:(r=Ii(i,a))<55296||r>56319||a+1===c||(o=Ii(i,a+1))<56320||o>57343?t?xi(i,a):r:t?Ri(i,a,a+2):o-56320+(r-55296<<10)+65536}},Ni={codeAt:ki(!1),charAt:ki(!0)}.charAt,Mi="String Iterator",Ui=on.set,Di=on.getterFor(Mi);cr(String,"String",(function(t){Ui(this,{type:Mi,string:Ci(t),index:0})}),(function(){var t,n=Di(this),e=n.string,r=n.index;return r>=e.length?ur(void 0,!0):(t=Ni(e,r),n.index+=t.length,ur(t,!1))}));var Hi={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Bi=Ot("span").classList,Wi=Bi&&Bi.constructor&&Bi.constructor.prototype,zi=Wi===Object.prototype?void 0:Wi,Fi=yt("iterator"),Gi=yt("toStringTag"),Vi=hr.values,Xi=function(t,n){if(t){if(t[Fi]!==Vi)try{Dt(t,Fi,Vi)}catch(n){t[Fi]=Vi}if(t[Gi]||Dt(t,Gi,n),Hi[n])for(var e in hr)if(t[e]!==hr[e])try{Dt(t,e,hr[e])}catch(n){t[e]=hr[e]}}};for(var qi in Hi)Xi(i[qi]&&i[qi].prototype,qi);Xi(zi,"DOMTokenList");var Yi=function(){return Yi=Object.assign||function(t){for(var n,e=1,r=arguments.length;e<r;e++)for(var o in n=arguments[e])Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);return t},Yi.apply(this,arguments)},Ji={weixinJsSdkTicket:"",launchContainerQuery:".mazey-launch-app-selector",launchShowWeixinToBrowserImgUrl:"",canShowWeixinToBrowser:!1,extInfo:"",wexinServiceAccountAppId:"",openPlatformMobileAppId:"",genTagPrefixStr:"mazey-launch-app-btn-prefix-",launchShowWeixinToBrowserClassName:"mazey-launch-app-wx-to-browser",launchBtnClassName:"mazey-launch-app-inner-btn",launchBtnStyle:"",launchBtnText:"Launch App",launchErrorLink:"",canContinuousUpdating:!1,onMenuShareTimelineOptions:void 0,onMenuShareAppMessageOptions:void 0,isConClosed:!0,isWxDebug:!1,canLaunchApp:function(){return!0},canFireErrorLinkDirectly:function(){return!1},launchBtnClick:function(){},launchReady:function(){}};return function(t){void 0===t&&(t=Ji);var n=Object.assign(Ji,t),e=n.weixinJsSdkTicket,r=n.launchContainerQuery,o=n.genTagPrefixStr,i=n.launchShowWeixinToBrowserImgUrl,a=n.canShowWeixinToBrowser,c=n.launchShowWeixinToBrowserClassName,u=n.launchBtnClassName,f=n.launchBtnStyle,s=n.launchBtnText,l=n.launchErrorLink,p=n.wexinServiceAccountAppId,h=n.openPlatformMobileAppId,d=n.canContinuousUpdating,v=n.onMenuShareTimelineOptions,y=n.onMenuShareAppMessageOptions,g=n.isConClosed,m=n.isWxDebug,b=n.canLaunchApp,w=n.canFireErrorLinkDirectly,S=n.launchBtnClick,A=n.launchReady,O=n.extInfo,E=window.mazey,P=window.sha1,_=window.wx,T=window.$||window.jQuery;E&&P&&_&&T||console.error("Launch App: wx or sha1 or $ or mazey is not found");var L=function(){},j=E.genCustomConsole("LaunchCon:",{isClosed:g});j.log("Launch App");var C={title:"",link:"",imgUrl:"",success:function(){},cancel:function(){}},x={title:"",desc:"",link:"",imgUrl:"",type:"",dataUrl:"",success:function(){},cancel:function(){}},I={title:document.title,link:location.href};C=Yi(Yi({},C),I),x=Yi(Yi({},x),I);var R=function(t,n,e){return void 0===t&&(t=""),void 0===n&&(n=""),void 0===e&&(e="button"),"<style>.".concat(u," {")+"opacity: 0;width: 100%;height: 100%;backgroud: transparent;color: #300f54;border: none;box-sizing: border-box;text-align: center;vertical-align: middle;"+f+n+"}</style>"+"<".concat(e,' class="').concat(u,'"')+(t&&"button"===e?' onclick="'.concat(t,'"'):"")+(t&&"a"===e?' target="_self" href="'.concat(t,'"'):"")+">"+s+"</".concat(e,">")},k=R();function N(){E.addStyle('.mazey-launch-app-mask { position: fixed; top: 0; right: 0; bottom: 0; left: 0; background-color: rgba(0, 0, 0, .5); text-align: right; font-size: 0; white-space: nowrap; overflow: auto; z-index: 999; } .mazey-launch-app-img { display: inline-block; vertical-align: middle; text-align: left; font-size: 14px; white-space: normal; width: 50vw; margin: 0.5rem 0.5rem 0 0; } .mazey-launch-app-img:after { content: ""; display: inline-block; height: 100%; vertical-align: middle; }',{id:"mazey-launch-app-mask-style"}),window.LAUNCH_APP_HIDE_WEIXIN_BROWSER||(window.LAUNCH_APP_HIDE_WEIXIN_BROWSER=function(){T(".mazey-launch-app-mask").hide()}),0===T(".mazey-launch-app-mask").length?T("body").append("<div class='mazey-launch-app-mask' onclick='window.LAUNCH_APP_HIDE_WEIXIN_BROWSER()'><img "+"class='mazey-launch-app-img ".concat(c,"' ")+"src='".concat(i,"' ")+"alt='Launch App' /></div>"):T(".mazey-launch-app-mask").show()}function M(){j.log("renderWeixinLaunchTemplate"),function(t,n){void 0===t&&(t=""),void 0===n&&(n=""),j.log("renderWXOpenLaunchApp"),Promise.all([Promise.resolve(e||window.LAUNCH_APP_WEIXIN_JS_SDK_TICKET),Promise.resolve(P)]).then((function(e){j.log("allRes",e);var i=e[0],c=e[1],u=E.generateRndNum(7),f=i,s=(new Date).getTime(),p=c("jsapi_ticket="+f+"&noncestr="+u+"×tamp="+s+"&url="+location.href);return _.config({debug:m,appId:t,timestamp:s,nonceStr:u,signature:p,jsApiList:["showOptionMenu","onMenuShareTimeline","onMenuShareAppMessage"],openTagList:["wx-open-launch-app"]}),_.ready((function(){v&&(j.log("onMenuShareTimelineOptions",v),_.onMenuShareTimeline(v)),window.LAUNCH_APP_SHARE_TIMELINE=function(t){t=Yi(Yi({},C),t),j.log("window LAUNCH_APP_SHARE_TIMELINE",t),_.onMenuShareTimeline(t)},y&&(j.log("onMenuShareAppMessageOptions",y),_.onMenuShareAppMessage(y)),window.LAUNCH_APP_SHARE_APP_MESSAGE=function(t){t=Yi(Yi({},x),t),j.log("window LAUNCH_APP_SHARE_APP_MESSAGE",t),_.onMenuShareAppMessage(t)},window.LAUNCH_APP_READY=!0,A&&A();var t=function(){var t=T(r);j.log("containers",r,t,t.length),t.length>0&&t.each((function(t,e){var r=T(e).attr("data-launch-app-key");if(!r){var i=T(e).parents("[data-launch-app-key]:eq(0)");i.length>0&&(r=i.attr("data-launch-app-key"),j.log("keyEle",i,r))}r||(r=t);var c="mazey-launch-app-tag-".concat(r),u=T(".".concat(c," wx-open-launch-app")),f=T(e).attr("data-launch-app-ext-info");if(!f){var s=T(e).parents("[data-launch-app-ext-info]:eq(0)");s.length>0&&(f=s.attr("data-launch-app-ext-info"),j.log("eleExtInfoEle parents",s,f))}f&&(O=f);var p=T(e).attr("data-launch-app-error-link");if(!p){var h=T(e).parents("[data-launch-app-error-link]:eq(0)");h.length>0&&(p=h.attr("data-launch-app-error-link"),j.log("eleErrorLinkEle parents",h,p))}var d=l;p&&(d=p),0===u.length&&(T(e).addClass(c),j.log("success:",c),function(t){var e=o,r=e+t,i="<wx-open-launch-app id='"+r+"' appid='"+n+"' extinfo='".concat(O)+"' style='z-index: 99; position: absolute; width: 100%; height: 100%; opacity: 1; background: transparent; overflow: hidden; left: 0;'><script type='text/wxtag-template'>"+k+"<\/script></wx-open-launch-app>";T("."+t+":eq(0)").append(i);var c=document.getElementById(r);c&&(c.addEventListener("ready",(function(t){j.log("ready event",t)})),c.addEventListener("launch",(function(t){j.log("launch event",t),t.detail&&t.detail.extInfo&&j.log("launch extInfo",t.detail.extInfo)})),c.addEventListener("error",(function(t){j.error(t.detail),T("[id^='"+e+"']").hide(),a&&N(),d&&(j.log("realErrorLink",d),location.href=d)})),c.addEventListener("click",(function(t){j.log("click event",t),S&&S()})))}(c))}))};t(),L=t})),_.error((function(t){j.error(t)})),"success:launch_app"})).catch((function(t){j.error(t)}))}(p,h)}function U(t){if(j.log("appUpdated",t),!window.LAUNCH_APP_LOAD&&b(t)&&(M(),window.LAUNCH_APP_LOAD=!0),d&&window.LAUNCH_APP_LOAD&&b(t)&&L(),w()){var n=T(r);n.length>0&&n.each((function(t,n){var e=T(n).children("."+u);if(!e||!e.length){var r=T(n).attr("data-launch-app-error-link");if(!r){var o=T(n).parents("[data-launch-app-error-link]:eq(0)");o.length>0&&(r=o.attr("data-launch-app-error-link"))}if(r&&"string"==typeof r&&r.length){var i=R(r,"position: absolute; left: 0; z-index: 999;","a");T(n).append(i)}}}))}}function D(){j.log("appBeforeDestroy",D),window.LAUNCH_APP_LOAD=null,window.LAUNCH_APP_HIDE_WEIXIN_BROWSER=null}return window.LAUNCH_APP_UPDATE=U,window.LAUNCH_APP_BEFORE_DESTROY=D,window.LAUNCH_APP_SHOW_WEIXIN_TO_BROWSER=N,{LAUNCH_APP_UPDATE:U,LAUNCH_APP_BEFORE_DESTROY:D,LAUNCH_APP_SHOW_WEIXIN_TO_BROWSER:N,LAUNCH_APP_SHARE_TIMELINE:function(t){j.log("opt",t)},LAUNCH_APP_SHARE_APP_MESSAGE:function(t){j.log("opt",t)},start:U,update:U,destroy:D}}}();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mazey-wechat-launch-app",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.4",
|
|
4
4
|
"description": "Launch App in Wechat",
|
|
5
5
|
"main": "lib/index.cjs.js",
|
|
6
6
|
"module": "lib/index.esm.js",
|
|
@@ -47,7 +47,6 @@
|
|
|
47
47
|
"@commitlint/config-conventional": "^8.3.4",
|
|
48
48
|
"@typescript-eslint/eslint-plugin": "^4.22.0",
|
|
49
49
|
"@typescript-eslint/parser": "^4.22.0",
|
|
50
|
-
"tslib": "^2.4.1",
|
|
51
50
|
"@webpack-cli/serve": "^1.7.0",
|
|
52
51
|
"clean-webpack-plugin": "^1.0.1",
|
|
53
52
|
"core-js": "^3.6.5",
|
|
@@ -65,7 +64,7 @@
|
|
|
65
64
|
"jest": "^27.5.1",
|
|
66
65
|
"lint-staged": "^10.0.8",
|
|
67
66
|
"markdown-toc": "^1.2.0",
|
|
68
|
-
"mazey": "^3.6.
|
|
67
|
+
"mazey": "^3.6.7",
|
|
69
68
|
"prettier": "^1.19.1",
|
|
70
69
|
"prettier-eslint-cli": "^5.0.0",
|
|
71
70
|
"rollup": "^2.79.1",
|
|
@@ -75,6 +74,7 @@
|
|
|
75
74
|
"rollup-plugin-terser": "^7.0.2",
|
|
76
75
|
"rollup-plugin-typescript2": "^0.30.0",
|
|
77
76
|
"ts-loader": "^8.0.2",
|
|
77
|
+
"tslib": "^2.4.1",
|
|
78
78
|
"typedoc": "^0.18.0",
|
|
79
79
|
"typescript": "^4.4.4",
|
|
80
80
|
"webpack": "4.30.0",
|