mazey-wechat-launch-app 2.1.0 → 2.1.2
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 +8 -8
- package/lib/index.cjs.js +1 -1
- package/lib/index.esm.js +1 -1
- package/lib/launch-app.min.js +5 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -20,7 +20,7 @@ npm install mazey-wechat-launch-app --save
|
|
|
20
20
|
|
|
21
21
|
## Usage
|
|
22
22
|
|
|
23
|
-
### NPM
|
|
23
|
+
### 1. NPM
|
|
24
24
|
|
|
25
25
|
```
|
|
26
26
|
import LAUNCH_APP from 'mazey-wechat-launch-app';
|
|
@@ -68,20 +68,20 @@ npm install js-sha1 jquery mazey --save
|
|
|
68
68
|
```
|
|
69
69
|
import sha1 from 'js-sha1';
|
|
70
70
|
import $ from 'jquery';
|
|
71
|
-
import mazey from 'mazey';
|
|
71
|
+
import * as mazey from 'mazey';
|
|
72
72
|
|
|
73
73
|
window.sha1 = sha1;
|
|
74
74
|
window.$ = $;
|
|
75
75
|
window.mazey = mazey;
|
|
76
76
|
```
|
|
77
77
|
|
|
78
|
-
### CDN
|
|
78
|
+
### 2. CDN
|
|
79
79
|
|
|
80
80
|
```
|
|
81
81
|
<script type="text/javascript" src="//res.wx.qq.com/open/js/jweixin-1.6.0.js"></script>
|
|
82
82
|
<script type="text/javascript" src="//i.mazey.net/lib/jquery/2.1.1/jquery.min.js"></script>
|
|
83
83
|
<script type="text/javascript" src="//i.mazey.net/lib/encode/js-sha1/0.6.0/sha1.min.js"></script>
|
|
84
|
-
<script type="text/javascript" src="//i.mazey.net/lib/mazey/3.
|
|
84
|
+
<script type="text/javascript" src="//i.mazey.net/lib/mazey/3.9.5/mazey.min.js"></script>
|
|
85
85
|
<script type="text/javascript" src="//i.mazey.net/lib/mazey-wechat-launch-app/1.1.2/launch-app.min.js"></script>
|
|
86
86
|
<script>
|
|
87
87
|
var options = {
|
|
@@ -126,14 +126,14 @@ window.mazey = mazey;
|
|
|
126
126
|
|
|
127
127
|
**2\. 如何修改按钮样式?**
|
|
128
128
|
|
|
129
|
-
|
|
129
|
+
方法一(推荐):
|
|
130
130
|
|
|
131
|
-
|
|
131
|
+
如官方所说,模版的样式是和页面隔离的,建议将此处透明的开放标签覆盖在原按钮上,这样就可以保留原按钮的样式,同时又可以实现点击跳转。
|
|
132
132
|
|
|
133
|
+
方法二:
|
|
133
134
|
|
|
134
|
-
|
|
135
|
+
通过 `launchBtnStyle` 参数添加内联样式,通过 `launchBtnText` 参数修改按钮文字。
|
|
135
136
|
|
|
136
|
-
如官方所说,模版的样式是和页面隔离的,建议将此处透明的开放标签覆盖在原按钮上,这样就可以保留原按钮的样式,同时又可以实现点击跳转。
|
|
137
137
|
|
|
138
138
|
**3\. 如何确保满足唤起的所有前置条件?**
|
|
139
139
|
|
package/lib/index.cjs.js
CHANGED
package/lib/index.esm.js
CHANGED
package/lib/launch-app.min.js
CHANGED
|
@@ -1 +1,6 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* mazey-wechat-launch-app v2.1.2 https://www.npmjs.com/package/mazey-wechat-launch-app
|
|
3
|
+
* (c) 2018-2023 Mazey Chu
|
|
4
|
+
* Released under the MIT License.
|
|
5
|
+
*/
|
|
1
6
|
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 e(t,e){return t(e={exports:{}},e.exports),e.exports}var n,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 e=p(this,t);return!!e&&e.enumerable}:l,d={f:h},v=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},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,e){return arguments.length<2?(n=i[t],R(n)?n:void 0):i[t]&&i[t][e];var n},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=(n=z.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!r&&D&&(!(n=D.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=D.match(/Chrome\/(\d+)/))&&(r=+n[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 e=M("Symbol");return R(e)&&U(e.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,e){var n=t[e];return _(n)?void 0:Q(n)},Z=TypeError,tt=Object.defineProperty,et=function(t,e){try{tt(i,t,{value:e,configurable:!0,writable:!0})}catch(n){i[t]=e}return e},nt="__core-js_shared__",rt=i[nt]||et(nt,{}),ot=e((function(t){(t.exports=function(t,e){return rt[t]||(rt[t]=void 0!==e?e:{})})("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,e){return ct(at(t),e)},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,e){if(!N(t)||q(t))return t;var n,r=$(t,mt);if(r){if(void 0===e&&(e="default"),n=s(r,t,e),!N(n)||q(n))return n;throw gt("Can't convert object to primitive value")}return void 0===e&&(e="number"),function(t,e){var n,r;if("string"===e&&R(n=t.toString)&&!N(r=s(n,t)))return r;if(R(n=t.valueOf)&&!N(r=s(n,t)))return r;if("string"!==e&&R(n=t.toString)&&!N(r=s(n,t)))return r;throw Z("Can't convert object to primitive value")}(t,e)},wt=function(t){var e=bt(t,"string");return q(e)?e:e+""},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,e){if(t=j(t),e=wt(e),Et)try{return Pt(t,e)}catch(t){}if(ut(t,e))return v(!s(d.f,t,e),t[e])}},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,e,n){if(Ct(t),e=wt(e),Ct(n),"function"==typeof t&&"prototype"===e&&"value"in n&&Mt in n&&!n[Mt]){var r=Rt(t,e);r&&r[Mt]&&(t[e]=n.value,n={configurable:Nt in n?n[Nt]:r[Nt],enumerable:kt in n?n[kt]:r[kt],writable:!1})}return It(t,e,n)}:It:function(t,e,n){if(Ct(t),e=wt(e),Ct(n),Et)try{return It(t,e,n)}catch(t){}if("get"in n||"set"in n)throw xt("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},Dt=c?function(t,e,n){return Ut.f(t,e,v(1,n))}:function(t,e,n){return t[e]=n,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",te=i.TypeError,ee=i.WeakMap;if(Jt||rt.state){var ne=rt.state||(rt.state=new ee);ne.get=ne.get,ne.has=ne.has,ne.set=ne.set,Gt=function(t,e){if(ne.has(t))throw te(Zt);return e.facade=t,ne.set(t,e),e},Vt=function(t){return ne.get(t)||{}},Xt=function(t){return ne.has(t)}}else{var re=Qt("state");$t[re]=!0,Gt=function(t,e){if(ut(t,re))throw te(Zt);return e.facade=t,Dt(t,re,e),e},Vt=function(t){return ut(t,re)?t[re]:{}},Xt=function(t){return ut(t,re)}}var oe={set:Gt,get:Vt,has:Xt,enforce:function(t){return Xt(t)?Vt(t):Gt(t,{})},getterFor:function(t){return function(e){var n;if(!N(e)||(n=Vt(e)).type!==t)throw te("Incompatible receiver, "+t+" required");return n}}},ie=e((function(t){var e=zt.CONFIGURABLE,n=oe.enforce,r=oe.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")||e&&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=n(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")})),ae=function(t,e,n,r){r||(r={});var o=r.enumerable,i=void 0!==r.name?r.name:e;if(R(n)&&ie(n,i,r),r.global)o?t[e]=n:et(e,n);else{try{r.unsafe?t[e]&&(o=!0):delete t[e]}catch(t){}o?t[e]=n:Ut.f(t,e,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return t},ce=Math.ceil,ue=Math.floor,fe=Math.trunc||function(t){var e=+t;return(e>0?ue:ce)(e)},se=function(t){var e=+t;return e!=e||0===e?0:fe(e)},le=Math.max,pe=Math.min,he=Math.min,de=function(t){return(e=t.length)>0?he(se(e),9007199254740991):0;var e},ve=function(t){return function(e,n,r){var o,i=j(e),a=de(i),c=function(t,e){var n=se(t);return n<0?le(n+e,0):pe(n,e)}(r,a);if(t&&n!=n){for(;a>c;)if((o=i[c++])!=o)return!0}else for(;a>c;c++)if((t||c in i)&&i[c]===n)return t||c||0;return!t&&-1}},ye={includes:ve(!0),indexOf:ve(!1)}.indexOf,ge=b([].push),me=function(t,e){var n,r=j(t),o=0,i=[];for(n in r)!ut($t,n)&&ut(r,n)&&ge(i,n);for(;e.length>o;)ut(r,n=e[o++])&&(~ye(i,n)||ge(i,n));return i},be=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],we=be.concat("length","prototype"),Se={f:Object.getOwnPropertyNames||function(t){return me(t,we)}},Ae={f:Object.getOwnPropertySymbols},Oe=b([].concat),Ee=M("Reflect","ownKeys")||function(t){var e=Se.f(Ct(t)),n=Ae.f;return n?Oe(e,n(t)):e},Pe=function(t,e,n){for(var r=Ee(e),o=Ut.f,i=_t.f,a=0;a<r.length;a++){var c=r[a];ut(t,c)||n&&ut(n,c)||o(t,c,i(e,c))}},_e=/#|\.prototype\./,Te=function(t,e){var n=je[Le(t)];return n==xe||n!=Ce&&(R(e)?a(e):!!e)},Le=Te.normalize=function(t){return String(t).replace(_e,".").toLowerCase()},je=Te.data={},Ce=Te.NATIVE="N",xe=Te.POLYFILL="P",Ie=Te,Re=_t.f,ke=function(t,e){var n,r,o,a,c,u=t.target,f=t.global,s=t.stat;if(n=f?i:s?i[u]||et(u,{}):(i[u]||{}).prototype)for(r in e){if(a=e[r],o=t.dontCallGetSet?(c=Re(n,r))&&c.value:n[r],!Ie(f?r:u+(s?".":"#")+r,t.forced)&&void 0!==o){if(typeof a==typeof o)continue;Pe(a,o)}(t.sham||o&&o.sham)&&Dt(a,"sham",!0),ae(n,r,a,t)}},Ne=Object.keys||function(t){return me(t,be)},Me=Object.assign,Ue=Object.defineProperty,De=b([].concat),He=!Me||a((function(){if(c&&1!==Me({b:1},Me(Ue({},"a",{enumerable:!0,get:function(){Ue(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach((function(t){e[t]=t})),7!=Me({},t)[n]||Ne(Me({},e)).join("")!=r}))?function(t,e){for(var n=at(t),r=arguments.length,o=1,i=Ae.f,a=d.f;r>o;)for(var u,f=P(arguments[o++]),l=i?De(Ne(f),i(f)):Ne(f),p=l.length,h=0;p>h;)u=l[h++],c&&!s(a,f,u)||(n[u]=f[u]);return n}:Me;ke({target:"Object",stat:!0,arity:2,forced:Object.assign!==He},{assign:He});var Be=Array.isArray||function(t){return"Array"==A(t)},We=TypeError,ze=function(t){if(t>9007199254740991)throw We("Maximum allowed index exceeded");return t},Fe=function(t,e,n){var r=wt(e);r in t?Ut.f(t,r,v(0,n)):t[r]=n},Ge={};Ge[yt("toStringTag")]="z";var Ve="[object z]"===String(Ge),Xe=yt("toStringTag"),qe=Object,Ye="Arguments"==A(function(){return arguments}()),Je=Ve?A:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=qe(t),Xe))?n:Ye?A(e):"Object"==(r=A(e))&&R(e.callee)?"Arguments":r},Ke=function(){},Qe=[],$e=M("Reflect","construct"),Ze=/^\s*(?:class|function)\b/,tn=b(Ze.exec),en=!Ze.exec(Ke),nn=function(t){if(!R(t))return!1;try{return $e(Ke,Qe,t),!0}catch(t){return!1}},rn=function(t){if(!R(t))return!1;switch(Je(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return en||!!tn(Ze,qt(t))}catch(t){return!0}};rn.sham=!0;var on,an=!$e||a((function(){var t;return nn(nn.call)||!nn(Object)||!nn((function(){t=!0}))||t}))?rn:nn,cn=yt("species"),un=Array,fn=function(t,e){return new(function(t){var e;return Be(t)&&(e=t.constructor,(an(e)&&(e===un||Be(e.prototype))||N(e)&&null===(e=e[cn]))&&(e=void 0)),void 0===e?un:e}(t))(0===e?0:e)},sn=yt("species"),ln=yt("isConcatSpreadable"),pn=F>=51||!a((function(){var t=[];return t[ln]=!1,t.concat()[0]!==t})),hn=function(t){if(!N(t))return!1;var e=t[ln];return void 0!==e?!!e:Be(t)},dn=!(pn&&(on="concat",F>=51||!a((function(){var t=[];return(t.constructor={})[sn]=function(){return{foo:1}},1!==t[on](Boolean).foo}))));ke({target:"Array",proto:!0,arity:1,forced:dn},{concat:function(t){var e,n,r,o,i,a=at(this),c=fn(a,0),u=0;for(e=-1,r=arguments.length;e<r;e++)if(hn(i=-1===e?a:arguments[e]))for(o=de(i),ze(u+o),n=0;n<o;n++,u++)n in i&&Fe(c,u,i[n]);else ze(u+1),Fe(c,u++,i);return c.length=u,c}});var vn,yn=c&&!Tt?Object.defineProperties:function(t,e){Ct(t);for(var n,r=j(e),o=Ne(e),i=o.length,a=0;i>a;)Ut.f(t,n=o[a++],r[n]);return t},gn={f:yn},mn=M("document","documentElement"),bn="prototype",wn="script",Sn=Qt("IE_PROTO"),An=function(){},On=function(t){return"<"+wn+">"+t+"</"+wn+">"},En=function(t){t.write(On("")),t.close();var e=t.parentWindow.Object;return t=null,e},Pn=function(){try{vn=new ActiveXObject("htmlfile")}catch(t){}var t,e,n;Pn="undefined"!=typeof document?document.domain&&vn?En(vn):(e=Ot("iframe"),n="java"+wn+":",e.style.display="none",mn.appendChild(e),e.src=String(n),(t=e.contentWindow.document).open(),t.write(On("document.F=Object")),t.close(),t.F):En(vn);for(var r=be.length;r--;)delete Pn[bn][be[r]];return Pn()};$t[Sn]=!0;var _n=Object.create||function(t,e){var n;return null!==t?(An[bn]=Ct(t),n=new An,An[bn]=null,n[Sn]=t):n=Pn(),void 0===e?n:gn.f(n,e)},Tn=Ut.f,Ln=yt("unscopables"),jn=Array.prototype;null==jn[Ln]&&Tn(jn,Ln,{configurable:!0,value:_n(null)});var Cn,xn,In,Rn=function(t){jn[Ln][t]=!0},kn={},Nn=!a((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),Mn=Qt("IE_PROTO"),Un=Object,Dn=Un.prototype,Hn=Nn?Un.getPrototypeOf:function(t){var e=at(t);if(ut(e,Mn))return e[Mn];var n=e.constructor;return R(n)&&e instanceof n?n.prototype:e instanceof Un?Dn:null},Bn=yt("iterator"),Wn=!1;[].keys&&("next"in(In=[].keys())?(xn=Hn(Hn(In)))!==Object.prototype&&(Cn=xn):Wn=!0);var zn=!N(Cn)||a((function(){var t={};return Cn[Bn].call(t)!==t}));zn&&(Cn={}),R(Cn[Bn])||ae(Cn,Bn,(function(){return this}));var Fn={IteratorPrototype:Cn,BUGGY_SAFARI_ITERATORS:Wn},Gn=Ut.f,Vn=yt("toStringTag"),Xn=function(t,e,n){t&&!n&&(t=t.prototype),t&&!ut(t,Vn)&&Gn(t,Vn,{configurable:!0,value:e})},qn=Fn.IteratorPrototype,Yn=function(){return this},Jn=String,Kn=TypeError,Qn=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{t=function(t,e,n){try{return b(Q(Object.getOwnPropertyDescriptor(t,e)[n]))}catch(t){}}(Object.prototype,"__proto__","set"),t(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return Ct(n),function(t){if("object"==typeof t||R(t))return t;throw Kn("Can't set "+Jn(t)+" as a prototype")}(r),e?t(n,r):n.__proto__=r,n}}():void 0),$n=zt.PROPER,Zn=zt.CONFIGURABLE,tr=Fn.IteratorPrototype,er=Fn.BUGGY_SAFARI_ITERATORS,nr=yt("iterator"),rr="keys",or="values",ir="entries",ar=function(){return this},cr=function(t,e,n,r,o,i,a){!function(t,e,n,r){var o=e+" Iterator";t.prototype=_n(qn,{next:v(+!r,n)}),Xn(t,o,!1),kn[o]=Yn}(n,e,r);var c,u,f,l=function(t){if(t===o&&g)return g;if(!er&&t in d)return d[t];switch(t){case rr:case or:case ir:return function(){return new n(this,t)}}return function(){return new n(this)}},p=e+" Iterator",h=!1,d=t.prototype,y=d[nr]||d["@@iterator"]||o&&d[o],g=!er&&y||l(o),m="Array"==e&&d.entries||y;if(m&&(c=Hn(m.call(new t)))!==Object.prototype&&c.next&&(Hn(c)!==tr&&(Qn?Qn(c,tr):R(c[nr])||ae(c,nr,ar)),Xn(c,p,!0)),$n&&o==or&&y&&y.name!==or&&(Zn?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)(er||h||!(f in d))&&ae(d,f,u[f]);else ke({target:e,proto:!0,forced:er||h},u);return d[nr]!==g&&ae(d,nr,g,{name:o}),kn[e]=g,u},ur=function(t,e){return{value:t,done:e}},fr=Ut.f,sr="Array Iterator",lr=oe.set,pr=oe.getterFor(sr),hr=cr(Array,"Array",(function(t,e){lr(this,{type:sr,target:j(t),index:0,kind:e})}),(function(){var t=pr(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,ur(void 0,!0)):ur("keys"==n?r:"values"==n?e[r]:[r,e[r]],!1)}),"values"),dr=kn.Arguments=kn.Array;if(Rn("keys"),Rn("values"),Rn("entries"),c&&"values"!==dr.name)try{fr(dr,"name",{value:"values"})}catch(t){}var vr=Ve?{}.toString:function(){return"[object "+Je(this)+"]"};Ve||ae(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,e){var n,r=Ct(t).constructor;return void 0===r||_(n=Ct(r)[Er])?e:function(t){if(an(t))return t;throw Or(J(t)+" is not a constructor")}(n)},_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,e){return Q(t),void 0===e?t:u?xr(t,e):function(){return t.apply(e,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 e=Gr[t];delete Gr[t],e()}},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,e){if(t<e)throw kr("Not enough arguments")}(arguments.length,1);var e=R(t)?t:Br(t),n=Rr(arguments,1);return Gr[++Fr]=function(){jr(e,void 0,n)},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){mn.appendChild(Ot("script"))[Vr]=function(){mn.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 e={item:t,next:null},n=this.tail;n?n.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}};var $r,Zr,to,eo,no,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,e;for(wr&&(t=so.domain)&&t.exit();e=vo.get();)try{e()}catch(t){throw vo.head&&$r(),t}t&&t.enter()};Nr||wr||io||!uo||!fo?!oo&&lo&&lo.resolve?((eo=lo.resolve(void 0)).constructor=lo,no=Ir(eo.then,eo),$r=function(){no(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=Ie("Promise",(function(){var t=qt(bo),e=t!==String(bo);if(!e&&66===F)return!0;if(!F||F<51||!/native code/.test(t)){var n=new bo((function(t){t(1)})),r=function(t){t((function(){}),(function(){}))};if((n.constructor={})[jo]=r,!(Co=n.then((function(){}))instanceof r))return!0}return!e&&(So||wo)&&!xo})),Ro={CONSTRUCTOR:Io,REJECTION_EVENT:xo,SUBCLASSING:Co},ko=TypeError,No=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw ko("Bad Promise constructor");e=t,n=r})),this.resolve=Q(e),this.reject=Q(n)},Mo={f:function(t){return new No(t)}},Uo=Kr.set,Do="Promise",Ho=Ro.CONSTRUCTOR,Bo=Ro.REJECTION_EVENT,Wo=Ro.SUBCLASSING,zo=oe.getterFor(Do),Fo=oe.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 e;return!(!N(t)||!R(e=t.then))&&e},ei=function(t,e){var n,r,o,i=e.value,a=1==e.state,c=a?t.ok:t.fail,u=t.resolve,f=t.reject,l=t.domain;try{c?(a||(2===e.rejection&&ai(e),e.rejection=1),!0===c?n=i:(l&&l.enter(),n=c(i),l&&(l.exit(),o=!0)),n===t.promise?f(qo("Promise-chain cycle")):(r=ti(n))?s(r,n,u,f):u(n)):f(i)}catch(t){l&&!o&&l.exit(),f(t)}},ni=function(t,e){t.notified||(t.notified=!0,go((function(){for(var n,r=t.reactions;n=r.get();)ei(n,t);t.notified=!1,e&&!t.rejection&&oi(t)})))},ri=function(t,e,n){var r,o;$o?((r=Yo.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),i.dispatchEvent(r)):r={promise:e,reason:n},!Bo&&(o=i["on"+t])?o(r):t===Zo&&function(t,e){try{1==arguments.length?console.error(t):console.error(t,e)}catch(t){}}("Unhandled promise rejection",n)},oi=function(t){s(Uo,i,(function(){var e,n=t.facade,r=t.value;if(ii(t)&&(e=mo((function(){wr?Jo.emit("unhandledRejection",r,n):ri(Zo,n,r)})),t.rejection=wr||ii(t)?2:1,e.error))throw e.value}))},ii=function(t){return 1!==t.rejection&&!t.parent},ai=function(t){s(Uo,i,(function(){var e=t.facade;wr?Jo.emit("rejectionHandled",e):ri("rejectionhandled",e,t.value)}))},ci=function(t,e,n){return function(r){t(e,r,n)}},ui=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,ni(t,!0))},fi=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw qo("Promise can't be resolved itself");var r=ti(e);r?go((function(){var n={done:!1};try{s(r,e,ci(fi,n,t),ci(ui,n,t))}catch(e){ui(n,e,t)}})):(t.value=e,t.state=1,ni(t,!1))}catch(e){ui({done:!1},e,t)}}};if(Ho&&(Xo=(Vo=function(t){!function(t,e){if(U(e,t))return t;throw Ar("Incorrect invocation")}(this,Xo),Q(t),s(Ao,this);var e=zo(this);try{t(ci(fi,e),ci(ui,e))}catch(t){ui(e,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=ae(Xo,"then",(function(t,e){var n=zo(this),r=Ko(Pr(this,Vo));return n.parent=!0,r.ok=!R(t)||t,r.fail=R(e)&&e,r.domain=wr?Jo.domain:void 0,0==n.state?n.reactions.add(r):go((function(){ei(r,n)})),r.promise})),Oo=function(){var t=new Ao,e=zo(t);this.promise=t,this.resolve=ci(fi,e),this.reject=ci(ui,e)},Mo.f=Ko=function(t){return t===Vo||undefined===t?new Oo(t):Qo(t)},R(bo)&&Go!==Object.prototype)){Eo=Go.then,Wo||ae(Go,"then",(function(t,e){var n=this;return new Vo((function(t,e){s(Eo,n,t,e)})).then(t,e)}),{unsafe:!0});try{delete Go.constructor}catch(t){}Qn&&Qn(Go,Xo)}ke({global:!0,constructor:!0,wrap:!0,forced:Ho},{Promise:Vo}),Xn(Vo,Do,!1),Lo=M(Do),c&&Lo&&!Lo[Sr]&&(Po=Lo,_o=Sr,(To={configurable:!0,get:function(){return this}}).get&&ie(To.get,_o,{getter:!0}),To.set&&ie(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")||kn[Je(t)]},di=TypeError,vi=function(t,e,n){var r,o;Ct(t);try{if(!(r=$(t,"return"))){if("throw"===e)throw n;return n}r=s(r,t)}catch(t){o=!0,r=t}if("throw"===e)throw n;if(o)throw r;return Ct(r),n},yi=TypeError,gi=function(t,e){this.stopped=t,this.result=e},mi=gi.prototype,bi=function(t,e,n){var r,o,i,a,c,u,f,l,p=n&&n.that,h=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_RECORD),v=!(!n||!n.IS_ITERATOR),y=!(!n||!n.INTERRUPTED),g=Ir(e,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)&&(kn.Array===l||li[si]===l)){for(i=0,a=de(t);a>i;i++)if((c=b(t[i]))&&U(mi,c))return c;return new gi(!1)}r=function(t,e){var n=arguments.length<2?hi(t):e;if(Q(n))return Ct(s(n,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,e){if(!e&&!Si)return!1;var n=!1;try{var r={};r[wi]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(t){}return n}((function(t){bo.all(t).then(void 0,(function(){}))}));ke({target:"Promise",stat:!0,forced:Ei},{all:function(t){var e=this,n=Mo.f(e),r=n.resolve,o=n.reject,i=mo((function(){var n=Q(e.resolve),i=[],a=0,c=1;bi(t,(function(t){var u=a++,f=!1;c++,s(n,e,t).then((function(t){f||(f=!0,i[u]=t,--c||r(i))}),o)})),--c||r(i)}));return i.error&&o(i.value),n.promise}});var Pi=Ro.CONSTRUCTOR,_i=bo&&bo.prototype;if(ke({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&&ae(_i,"catch",Ti,{unsafe:!0})}ke({target:"Promise",stat:!0,forced:Ei},{race:function(t){var e=this,n=Mo.f(e),r=n.reject,o=mo((function(){var o=Q(e.resolve);bi(t,(function(t){s(o,e,t).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}}),ke({target:"Promise",stat:!0,forced:Ro.CONSTRUCTOR},{reject:function(t){var e=Mo.f(this);return s(e.reject,void 0,t),e.promise}});var Li=Ro.CONSTRUCTOR;M("Promise"),ke({target:"Promise",stat:!0,forced:Li},{resolve:function(t){return function(t,e){if(Ct(t),N(e)&&e.constructor===t)return e;var n=Mo.f(t);return(0,n.resolve)(e),n.promise}(this,t)}});var ji=String,Ci=function(t){if("Symbol"===Je(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(e,n){var r,o,i=Ci(L(e)),a=se(n),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=oe.set,Di=oe.getterFor(Mi);cr(String,"String",(function(t){Ui(this,{type:Mi,string:Ci(t),index:0})}),(function(){var t,e=Di(this),n=e.string,r=e.index;return r>=n.length?ur(void 0,!0):(t=Ni(n,r),e.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,e){if(t){if(t[Fi]!==Vi)try{Dt(t,Fi,Vi)}catch(e){t[Fi]=Vi}if(t[Gi]||Dt(t,Gi,e),Hi[e])for(var n in hr)if(t[n]!==hr[n])try{Dt(t,n,hr[n])}catch(e){t[n]=hr[n]}}};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 e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Yi.apply(this,arguments)},Ji={weixinJsSdkTicket:"",launchContainerQuery:".mazey-launch-app-selector",launchShowWeixinToBrowserImgUrl:"",canShowWeixinToBrowser:!1,extInfo:"",serviceAccountAppId:"",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 <br /><br /><br />",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 e=Object.assign(Ji,t),n=e.weixinJsSdkTicket,r=e.launchContainerQuery,o=e.genTagPrefixStr,i=e.launchShowWeixinToBrowserImgUrl,a=e.canShowWeixinToBrowser,c=e.launchShowWeixinToBrowserClassName,u=e.launchBtnClassName,f=e.launchBtnStyle,s=e.launchBtnText,l=e.launchErrorLink,p=e.wexinServiceAccountAppId,h=e.openPlatformMobileAppId,d=e.canContinuousUpdating,v=e.onMenuShareTimelineOptions,y=e.onMenuShareAppMessageOptions,g=e.isConClosed,m=e.isWxDebug,b=e.canLaunchApp,w=e.canFireErrorLinkDirectly,S=e.launchBtnClick,A=e.launchReady,O=e.serviceAccountAppId,E=e.extInfo,P=window.mazey,_=window.sha1,T=window.wx,L=window.$||window.jQuery;P&&_&&T&&L||console.error("Launch App: wx or sha1 or $ or mazey is not found");var j=function(){},C=P.genCustomConsole("LaunchCon:",{isClosed:g});C.log("Launch App");var x={title:"",link:"",imgUrl:"",success:function(){},cancel:function(){}},I={title:"",desc:"",link:"",imgUrl:"",type:"",dataUrl:"",success:function(){},cancel:function(){}},R={title:document.title,link:location.href};x=Yi(Yi({},x),R),I=Yi(Yi({},I),R);var k=function(t,e,n){return void 0===t&&(t=""),void 0===e&&(e=""),void 0===n&&(n="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+e+"}</style>"+"<".concat(n,' class="').concat(u,'"')+(t&&"button"===n?' onclick="'.concat(t,'"'):"")+(t&&"a"===n?' target="_self" href="'.concat(t,'"'):"")+">"+s+"</".concat(n,">")},N=k();function M(){P.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(){L(".mazey-launch-app-mask").hide()}),0===L(".mazey-launch-app-mask").length?L("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>"):L(".mazey-launch-app-mask").show()}function U(){C.log("renderWeixinLaunchTemplate"),!O&&p&&(console.warn("wexinServiceAccountAppId will be deprecated, use serviceAccountAppId instead."),O=p),function(t,e){void 0===t&&(t=""),void 0===e&&(e=""),C.log("renderWXOpenLaunchApp"),Promise.all([Promise.resolve(n||window.LAUNCH_APP_WEIXIN_JS_SDK_TICKET),Promise.resolve(_)]).then((function(n){C.log("allRes",n);var i=n[0],c=n[1],u=P.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&&(C.log("onMenuShareTimelineOptions",v),T.onMenuShareTimeline(v)),window.LAUNCH_APP_SHARE_TIMELINE=function(t){t=Yi(Yi({},x),t),C.log("window LAUNCH_APP_SHARE_TIMELINE",t),T.onMenuShareTimeline(t)},y&&(C.log("onMenuShareAppMessageOptions",y),T.onMenuShareAppMessage(y)),window.LAUNCH_APP_SHARE_APP_MESSAGE=function(t){t=Yi(Yi({},I),t),C.log("window LAUNCH_APP_SHARE_APP_MESSAGE",t),T.onMenuShareAppMessage(t)},window.LAUNCH_APP_READY=!0,A&&A();var t=function(){var t=L(r);C.log("containers",r,t,t.length),t.length>0&&t.each((function(t,n){var r=L(n).attr("data-launch-app-key");if(!r){var i=L(n).parents("[data-launch-app-key]:eq(0)");i.length>0&&(r=i.attr("data-launch-app-key"),C.log("keyEle",i,r))}r||(r=t);var c="mazey-launch-app-tag-".concat(r),u=L(".".concat(c," wx-open-launch-app")),f=L(n).attr("data-launch-app-ext-info");if(!f){var s=L(n).parents("[data-launch-app-ext-info]:eq(0)");s.length>0&&(f=s.attr("data-launch-app-ext-info"),C.log("eleExtInfoEle parents",s,f))}f&&(E=f);var p=L(n).attr("data-launch-app-error-link");if(!p){var h=L(n).parents("[data-launch-app-error-link]:eq(0)");h.length>0&&(p=h.attr("data-launch-app-error-link"),C.log("eleErrorLinkEle parents",h,p))}var d=l;p&&(d=p),0===u.length&&(L(n).addClass(c),C.log("success:",c),function(t){var n=o,r=n+t,i="<wx-open-launch-app id='"+r+"' appid='"+e+"' extinfo='".concat(E)+"' style='z-index:99;position:absolute;width:100%;height:100%;opacity:1;background:transparent;overflow:hidden;left:0;'><script type='text/wxtag-template'>"+N+"<\/script></wx-open-launch-app>";L("."+t+":eq(0)").append(i);var c=document.getElementById(r);c&&(c.addEventListener("ready",(function(t){C.log("ready event",t)})),c.addEventListener("launch",(function(t){C.log("launch event",t),t.detail&&t.detail.extInfo&&C.log("launch extInfo",t.detail.extInfo)})),c.addEventListener("error",(function(t){C.error(t.detail),L("[id^='"+n+"']").hide(),a&&M(),d&&(C.log("realErrorLink",d),location.href=d)})),c.addEventListener("click",(function(t){C.log("click event",t),S&&S()})))}(c))}))};t(),j=t})),T.error((function(t){C.error(t)})),"success:launch_app"})).catch((function(t){C.error(t)}))}(O,h)}function D(t){if(C.log("appUpdated",t),!window.LAUNCH_APP_LOAD&&b(t)&&(U(),window.LAUNCH_APP_LOAD=!0),d&&window.LAUNCH_APP_LOAD&&b(t)&&j(),w()){var e=L(r);e.length>0&&e.each((function(t,e){var n=L(e).children("."+u);if(!n||!n.length){var r=L(e).attr("data-launch-app-error-link");if(!r){var o=L(e).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=k(r,"position:absolute;left:0;z-index:999;","a");L(e).append(i)}}}))}}function H(){C.log("appBeforeDestroy",H),window.LAUNCH_APP_LOAD=null,window.LAUNCH_APP_HIDE_WEIXIN_BROWSER=null}return window.LAUNCH_APP_UPDATE=D,window.LAUNCH_APP_BEFORE_DESTROY=H,window.LAUNCH_APP_SHOW_WEIXIN_TO_BROWSER=M,{LAUNCH_APP_UPDATE:D,LAUNCH_APP_BEFORE_DESTROY:H,LAUNCH_APP_SHOW_WEIXIN_TO_BROWSER:M,LAUNCH_APP_SHARE_TIMELINE:function(t){C.log("opt",t)},LAUNCH_APP_SHARE_APP_MESSAGE:function(t){C.log("opt",t)},start:D,update:D,destroy:H}}}();
|