var ww=function(e){"use strict";var n,t,r="undefined"!=typeof window?window:void 0,i="undefined"!=typeof document?document:void 0,o="undefined"!=typeof navigator?navigator:void 0,a="undefined"!=typeof location?location:void 0;function c(){return(null==a?void 0:a.href)||""}function u(){return(null==i?void 0:i.title)||""}var s,l,d,p=(null==o?void 0:o.userAgent)||"",f=(null==o?void 0:o.platform)||"",v=null===(t=null==p?void 0:p.match(/wxwork\/([\d.]+)/i))||void 0===t?void 0:t[1],h=!!v,g=!h&&/micromessenger/i.test(p),m=/\bAndroid\b/i.test(p),y=/Win/i.test(f),C=(n=function(){var e,n=null!==(e=null==o?void 0:o.maxTouchPoints)&&void 0!==e?e:1,t=/Mac/i.test(f);if(t&&n>2)return{isMac:!1,isIOS:!0};return{isMac:t,isIOS:/\b(iPhone|iPad|iPod)\b/i.test(p)}}(),n.isIOS),w=n.isMac;function S(){return s}function T(){var e;return null===(e=null==l?void 0:l.getResult())||void 0===e?void 0:e.params}function I(){var e;return null===(e=null==d?void 0:d.getResult())||void 0===e?void 0:e.params}function A(){var e=S();if(h&&(null==e?void 0:e.getAgentConfigSignature)){var n=I();return null==n?void 0:n.corpid}var t=T();return null==t?void 0:t.appId}function W(){var e=function(){var e=S();return h&&(null==e?void 0:e.getAgentConfigSignature)?I():T()}();if(e){var n=A();return{appId:n,verifyAppId:n,verifySignType:"sha1",verifyTimestamp:e.timestamp,verifyNonceStr:e.nonceStr,verifySignature:e.signature}}}var b=function(e,n){return b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t])},b(e,n)};function k(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function t(){this.constructor=e}b(e,n),e.prototype=null===n?Object.create(n):(t.prototype=n.prototype,new t)}var P=function(){return P=Object.assign||function(e){for(var n,t=1,r=arguments.length;t0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]c)return 1;if(a=0&&qe.splice(e,1)});function d(t){!function(e,n,t){var r="string"==typeof n?n:JSON.stringify(n);null==e||e.postMessage(r,t)}(e.contentWindow,t,n)}return e.addEventListener("load",(function(){s||d({type:"ww-iframe-handle:init"})})),{invoke:o,dispose:l}}var Fe={agentConfig:ke,suiteConfig:function(e){return _(this,void 0,void 0,(function(){var n,t;return L(this,(function(r){switch(r.label){case 0:if(!(null==(n=S())?void 0:n.getSuiteConfigSignature))throw new Te("Missing getSuiteConfigSignature");return[4,n.getSuiteConfigSignature(e)];case 1:return t=r.sent(),[2,{suiteid:n.suiteId,timestamp:"".concat(t.timestamp),nonceStr:t.nonceStr,signature:t.signature,jsApiList:N(n.jsApiList||["agentConfig"])}]}}))}))}};function Ge(e,n){return _(this,void 0,void 0,(function(){var t,r,i,o,a,c;return L(this,(function(u){switch(u.label){case 0:t=new Error("Missing signature handler"),r=0,i=n,u.label=1;case 1:if(!(r>>4&15)+t.charAt(15&n);return r}(function(e){return function(e){for(var n="",t=0;t<32*e.length;t+=8)n+=String.fromCharCode(e[t>>5]>>>24-t%32&255);return n}(function(e,n){e[n>>5]|=128<<24-n%32,e[15+(n+64>>9<<4)]=n;for(var t=new Array(80),r=1732584193,i=-271733879,o=-1732584194,a=271733878,c=-1009589776,u=0;u>2),t=0;t>5]|=(255&e.charCodeAt(t/8))<<24-t%32;return n}(e),8*e.length))}(e))}function en(e,n,t,r){return e<20?n&t|~n&r:e<40?n^t^r:e<60?n&t|n&r|t&r:n^t^r}function nn(e){return e<20?1518500249:e<40?1859775393:e<60?-1894007588:-899497514}function tn(e,n){var t=(65535&e)+(65535&n);return(e>>16)+(n>>16)+(t>>16)<<16|65535&t}function rn(e,n){return e<>>32-n}var on={isWeChat:g,isWeCom:h};return e.IS_WECOM_SDK=!0,e.SDK_VERSION=Xe,e.addCard=function(e){var n=this;return Be(e,(function(){return _(n,void 0,void 0,(function(){var n,t,r,i;return L(this,(function(o){switch(o.label){case 0:return[4,Pe()];case 1:return o.sent(),[4,Y("batchAddCard",{card_list:e.cardList.map((function(e){return{card_id:e.cardId,card_ext:e.cardExt}}))})];case 2:if(!(n=o.sent()).card_list)return[2,n];for(t=0,r=n.card_list;t