text: !function(r,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["yungouos-pay-uniapp-sdk"]=e():r["yungouos-pay-uniapp-sdk"]=e()}(this,(function(){return function(r){var e={};function t(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return r[n].call(o.exports,o,o.exports,t),o.l=!0,o.exports}return t.m=r,t.c=e,t.d=function(r,e,n){t.o(r,e)||Object.defineProperty(r,e,{enumerable:!0,get:n})},t.r=function(r){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},t.t=function(r,e){if(1&e&&(r=t(r)),8&e)return r;if(4&e&&"object"==typeof r&&r&&r.__esModule)return r;var n=Object.create(null);if(t.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:r}),2&e&&"string"!=typeof r)for(var o in r)t.d(n,o,function(e){return r[e]}.bind(null,o));return n},t.n=function(r){var e=r&&r.__esModule?function(){return r.default}:function(){return r};return t.d(e,"a",e),e},t.o=function(r,e){return Object.prototype.hasOwnProperty.call(r,e)},t.p="",t(t.s=141)}([function(r,e,t){(function(e){var t=function(r){return r&&r.Math==Math&&r};r.exports=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof e&&e)||function(){return this}()||Function("return this")()}).call(this,t(93))},function(r,e,t){var n=t(0),o=t(39),u=t(6),i=t(40),s=t(43),a=t(59),c=o("wks"),l=n.Symbol,p=a?l:l&&l.withoutSetter||i;r.exports=function(r){return u(c,r)&&(s||"string"==typeof c[r])||(s&&u(l,r)?c[r]=l[r]:c[r]=p("Symbol."+r)),c[r]}},function(r,e){r.exports=function(r){try{return!!r()}catch(r){return!0}}},function(r,e,t){var n=t(5);r.exports=function(r){if(!n(r))throw TypeError(String(r)+" is not an object");return r}},function(r,e,t){var n=t(0),o=t(26).f,u=t(9),i=t(13),s=t(36),a=t(53),c=t(58);r.exports=function(r,e){var t,l,p,y,f,d=r.target,m=r.global,g=r.stat;if(t=m?n:g?n[d]||s(d,{}):(n[d]||{}).prototype)for(l in e){if(y=e[l],p=r.noTargetGet?(f=o(t,l))&&f.value:t[l],!c(m?l:d+(g?".":"#")+l,r.forced)&&void 0!==p){if(typeof y==typeof p)continue;a(y,p)}(r.sham||p&&p.sham)&&u(y,"sham",!0),i(t,l,y,r)}}},function(r,e){r.exports=function(r){return"object"==typeof r?null!==r:"function"==typeof r}},function(r,e){var t={}.hasOwnProperty;r.exports=function(r,e){return t.call(r,e)}},function(r,e,t){var n=t(8),o=t(52),u=t(3),i=t(27),s=Object.defineProperty;e.f=n?s:function(r,e,t){if(u(r),e=i(e,!0),u(t),o)try{return s(r,e,t)}catch(r){}if("get"in t||"set"in t)throw TypeError("Accessors not supported");return"value"in t&&(r[e]=t.value),r}},function(r,e,t){var n=t(2);r.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(r,e,t){var n=t(8),o=t(7),u=t(21);r.exports=n?function(r,e,t){return o.f(r,e,u(1,t))}:function(r,e,t){return r[e]=t,r}},function(r,e,t){var n=t(46),o=t(13),u=t(107);n||o(Object.prototype,"toString",u,{unsafe:!0})},function(r,e,t){"use strict";var n,o,u,i,s=t(4),a=t(23),c=t(0),l=t(19),p=t(97),y=t(13),f=t(98),d=t(30),m=t(99),g=t(5),b=t(24),h=t(100),E=t(37),v=t(101),k=t(64),x=t(65),_=t(66).set,w=t(102),S=t(104),P=t(105),O=t(69),A=t(106),R=t(22),j=t(58),I=t(1),T=t(31),N=t(44),L=I("species"),C="Promise",U=R.get,B=R.set,D=R.getterFor(C),F=p,z=c.TypeError,M=c.document,q=c.process,J=l("fetch"),G=O.f,W=G,H=!!(M&&M.createEvent&&c.dispatchEvent),$="function"==typeof PromiseRejectionEvent,V=j(C,(function(){if(!(E(F)!==String(F))){if(66===N)return!0;if(!T&&!$)return!0}if(a&&!F.prototype.finally)return!0;if(N>=51&&/native code/.test(F))return!1;var r=F.resolve(1),e=function(r){r((function(){}),(function(){}))};return(r.constructor={})[L]=e,!(r.then((function(){}))instanceof e)})),Y=V||!k((function(r){F.all(r).catch((function(){}))})),Q=function(r){var e;return!(!g(r)||"function"!=typeof(e=r.then))&&e},K=function(r,e){if(!r.notified){r.notified=!0;var t=r.reactions;w((function(){for(var n=r.value,o=1==r.state,u=0;t.length>u;){var i,s,a,c=t[u++],l=o?c.ok:c.fail,p=c.resolve,y=c.reject,f=c.domain;try{l?(o||(2===r.rejection&&er(r),r.rejection=1),!0===l?i=n:(f&&f.enter(),i=l(n),f&&(f.exit(),a=!0)),i===c.promise?y(z("Promise-chain cycle")):(s=Q(i))?s.call(i,p,y):p(i)):y(n)}catch(r){f&&!a&&f.exit(),y(r)}}r.reactions=[],r.notified=!1,e&&!r.rejection&&Z(r)}))}},X=function(r,e,t){var n,o;H?((n=M.createEvent("Event")).promise=e,n.reason=t,n.initEvent(r,!1,!0),c.dispatchEvent(n)):n={promise:e,reason:t},!$&&(o=c["on"+r])?o(n):"unhandledrejection"===r&&P("Unhandled promise rejection",t)},Z=function(r){_.call(c,(function(){var e,t=r.facade,n=r.value;if(rr(r)&&(e=A((function(){T?q.emit("unhandledRejection",n,t):X("unhandledrejection",t,n)})),r.rejection=T||rr(r)?2:1,e.error))throw e.value}))},rr=function(r){return 1!==r.rejection&&!r.parent},er=function(r){_.call(c,(function(){var e=r.facade;T?q.emit("rejectionHandled",e):X("rejectionhandled",e,r.value)}))},tr=function(r,e,t){return function(n){r(e,n,t)}},nr=function(r,e,t){r.done||(r.done=!0,t&&(r=t),r.value=e,r.state=2,K(r,!0))},or=function(r,e,t){if(!r.done){r.done=!0,t&&(r=t);try{if(r.facade===e)throw z("Promise can't be resolved itself");var n=Q(e);n?w((function(){var t={done:!1};try{n.call(e,tr(or,t,r),tr(nr,t,r))}catch(e){nr(t,e,r)}})):(r.value=e,r.state=1,K(r,!1))}catch(e){nr({done:!1},e,r)}}};V&&(F=function(r){h(this,F,C),b(r),n.call(this);var e=U(this);try{r(tr(or,e),tr(nr,e))}catch(r){nr(e,r)}},(n=function(r){B(this,{type:C,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=f(F.prototype,{then:function(r,e){var t=D(this),n=G(x(this,F));return n.ok="function"!=typeof r||r,n.fail="function"==typeof e&&e,n.domain=T?q.domain:void 0,t.parent=!0,t.reactions.push(n),0!=t.state&&K(t,!1),n.promise},catch:function(r){return this.then(void 0,r)}}),o=function(){var r=new n,e=U(r);this.promise=r,this.resolve=tr(or,e),this.reject=tr(nr,e)},O.f=G=function(r){return r===F||r===u?new o(r):W(r)},a||"function"!=typeof p||(i=p.prototype.then,y(p.prototype,"then",(function(r,e){var t=this;return new F((function(r,e){i.call(t,r,e)})).then(r,e)}),{unsafe:!0}),"function"==typeof J&&s({global:!0,enumerable:!0,forced:!0},{fetch:function(r){return S(F,J.apply(c,arguments))}}))),s({global:!0,wrap:!0,forced:V},{Promise:F}),d(F,C,!1,!0),m(C),u=l(C),s({target:C,stat:!0,forced:V},{reject:function(r){var e=G(this);return e.reject.call(void 0,r),e.promise}}),s({target:C,stat:!0,forced:a||V},{resolve:function(r){return S(a&&this===u?F:this,r)}}),s({target:C,stat:!0,forced:Y},{all:function(r){var e=this,t=G(e),n=t.resolve,o=t.reject,u=A((function(){var t=b(e.resolve),u=[],i=0,s=1;v(r,(function(r){var a=i++,c=!1;u.push(void 0),s++,t.call(e,r).then((function(r){c||(c=!0,u[a]=r,--s||n(u))}),o)})),--s||n(u)}));return u.error&&o(u.value),t.promise},race:function(r){var e=this,t=G(e),n=t.reject,o=A((function(){var o=b(e.resolve);v(r,(function(r){o.call(e,r).then(t.resolve,n)}))}));return o.error&&n(o.value),t.promise}})},function(r,e,t){var n=t(34),o=t(18);r.exports=function(r){return n(o(r))}},function(r,e,t){var n=t(0),o=t(9),u=t(6),i=t(36),s=t(37),a=t(22),c=a.get,l=a.enforce,p=String(String).split("String");(r.exports=function(r,e,t,s){var a,c=!!s&&!!s.unsafe,y=!!s&&!!s.enumerable,f=!!s&&!!s.noTargetGet;"function"==typeof t&&("string"!=typeof e||u(t,"name")||o(t,"name",e),(a=l(t)).source||(a.source=p.join("string"==typeof e?e:""))),r!==n?(c?!f&&r[e]&&(y=!0):delete r[e],y?r[e]=t:o(r,e,t)):y?r[e]=t:i(e,t)})(Function.prototype,"toString",(function(){return"function"==typeof this&&c(this).source||s(this)}))},function(r,e,t){var n=function(r){"use strict";var e=Object.prototype,t=e.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",u=n.asyncIterator||"@@asyncIterator",i=n.toStringTag||"@@toStringTag";function s(r,e,t){return Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}),r[e]}try{s({},"")}catch(r){s=function(r,e,t){return r[e]=t}}function a(r,e,t,n){var o=e&&e.prototype instanceof p?e:p,u=Object.create(o.prototype),i=new _(n||[]);return u._invoke=function(r,e,t){var n="suspendedStart";return function(o,u){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw u;return S()}for(t.method=o,t.arg=u;;){var i=t.delegate;if(i){var s=v(i,t);if(s){if(s===l)continue;return s}}if("next"===t.method)t.sent=t._sent=t.arg;else if("throw"===t.method){if("suspendedStart"===n)throw n="completed",t.arg;t.dispatchException(t.arg)}else"return"===t.method&&t.abrupt("return",t.arg);n="executing";var a=c(r,e,t);if("normal"===a.type){if(n=t.done?"completed":"suspendedYield",a.arg===l)continue;return{value:a.arg,done:t.done}}"throw"===a.type&&(n="completed",t.method="throw",t.arg=a.arg)}}}(r,t,i),u}function c(r,e,t){try{return{type:"normal",arg:r.call(e,t)}}catch(r){return{type:"throw",arg:r}}}r.wrap=a;var l={};function p(){}function y(){}function f(){}var d={};d[o]=function(){return this};var m=Object.getPrototypeOf,g=m&&m(m(w([])));g&&g!==e&&t.call(g,o)&&(d=g);var b=f.prototype=p.prototype=Object.create(d);function h(r){["next","throw","return"].forEach((function(e){s(r,e,(function(r){return this._invoke(e,r)}))}))}function E(r,e){var n;this._invoke=function(o,u){function i(){return new e((function(n,i){!function n(o,u,i,s){var a=c(r[o],r,u);if("throw"!==a.type){var l=a.arg,p=l.value;return p&&"object"==typeof p&&t.call(p,"__await")?e.resolve(p.__await).then((function(r){n("next",r,i,s)}),(function(r){n("throw",r,i,s)})):e.resolve(p).then((function(r){l.value=r,i(l)}),(function(r){return n("throw",r,i,s)}))}s(a.arg)}(o,u,n,i)}))}return n=n?n.then(i,i):i()}}function v(r,e){var t=r.iterator[e.method];if(void 0===t){if(e.delegate=null,"throw"===e.method){if(r.iterator.return&&(e.method="return",e.arg=void 0,v(r,e),"throw"===e.method))return l;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var n=c(t,r.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,l;var o=n.arg;return o?o.done?(e[r.resultName]=o.value,e.next=r.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,l):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,l)}function k(r){var e={tryLoc:r[0]};1 in r&&(e.catchLoc=r[1]),2 in r&&(e.finallyLoc=r[2],e.afterLoc=r[3]),this.tryEntries.push(e)}function x(r){var e=r.completion||{};e.type="normal",delete e.arg,r.completion=e}function _(r){this.tryEntries=[{tryLoc:"root"}],r.forEach(k,this),this.reset(!0)}function w(r){if(r){var e=r[o];if(e)return e.call(r);if("function"==typeof r.next)return r;if(!isNaN(r.length)){var n=-1,u=function e(){for(;++n<r.length;)if(t.call(r,n))return e.value=r[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return u.next=u}}return{next:S}}function S(){return{value:void 0,done:!0}}return y.prototype=b.constructor=f,f.constructor=y,y.displayName=s(f,i,"GeneratorFunction"),r.isGeneratorFunction=function(r){var e="function"==typeof r&&r.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},r.mark=function(r){return Object.setPrototypeOf?Object.setPrototypeOf(r,f):(r.__proto__=f,s(r,i,"GeneratorFunction")),r.prototype=Object.create(b),r},r.awrap=function(r){return{__await:r}},h(E.prototype),E.prototype[u]=function(){return this},r.AsyncIterator=E,r.async=function(e,t,n,o,u){void 0===u&&(u=Promise);var i=new E(a(e,t,n,o),u);return r.isGeneratorFunction(t)?i:i.next().then((function(r){return r.done?r.value:i.next()}))},h(b),s(b,i,"Generator"),b[o]=function(){return this},b.toString=function(){return"[object Generator]"},r.keys=function(r){var e=[];for(var t in r)e.push(t);return e.reverse(),function t(){for(;e.length;){var n=e.pop();if(n in r)return t.value=n,t.done=!1,t}return t.done=!0,t}},r.values=w,_.prototype={constructor:_,reset:function(r){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!r)for(var e in this)"t"===e.charAt(0)&&t.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var r=this.tryEntries[0].completion;if("throw"===r.type)throw r.arg;return this.rval},dispatchException:function(r){if(this.done)throw r;var e=this;function n(t,n){return i.type="throw",i.arg=r,e.next=t,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var u=this.tryEntries[o],i=u.completion;if("root"===u.tryLoc)return n("end");if(u.tryLoc<=this.prev){var s=t.call(u,"catchLoc"),a=t.call(u,"finallyLoc");if(s&&a){if(this.prev<u.catchLoc)return n(u.catchLoc,!0);if(this.prev<u.finallyLoc)return n(u.finallyLoc)}else if(s){if(this.prev<u.catchLoc)return n(u.catchLoc,!0)}else{if(!a)throw new Error("try statement without catch or finally");if(this.prev<u.finallyLoc)return n(u.finallyLoc)}}}},abrupt:function(r,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&t.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var u=o;break}}u&&("break"===r||"continue"===r)&&u.tryLoc<=e&&e<=u.finallyLoc&&(u=null);var i=u?u.completion:{};return i.type=r,i.arg=e,u?(this.method="next",this.next=u.finallyLoc,l):this.complete(i)},complete:function(r,e){if("throw"===r.type)throw r.arg;return"break"===r.type||"continue"===r.type?this.next=r.arg:"return"===r.type?(this.rval=this.arg=r.arg,this.method="return",this.next="end"):"normal"===r.type&&e&&(this.next=e),l},finish:function(r){for(var e=this.tryEntries.length-1;e>=0;--e){var t=this.tryEntries[e];if(t.finallyLoc===r)return this.complete(t.completion,t.afterLoc),x(t),l}},catch:function(r){for(var e=this.tryEntries.length-1;e>=0;--e){var t=this.tryEntries[e];if(t.tryLoc===r){var n=t.completion;if("throw"===n.type){var o=n.arg;x(t)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(r,e,t){return this.delegate={iterator:w(r),resultName:e,nextLoc:t},"next"===this.method&&(this.arg=void 0),l}},r}(r.exports);try{regeneratorRuntime=n}catch(r){Function("r","regeneratorRuntime = r")(n)}},function(r,e){var t={}.toString;r.exports=function(r){return t.call(r).slice(8,-1)}},function(r,e,t){var n=t(20),o=Math.min;r.exports=function(r){return r>0?o(n(r),9007199254740991):0}},function(r,e,t){var n=t(18);r.exports=function(r){return Object(n(r))}},function(r,e){r.exports=function(r){if(null==r)throw TypeError("Can't call method on "+r);return r}},function(r,e,t){var n=t(54),o=t(0),u=function(r){return"function"==typeof r?r:void 0};r.exports=function(r,e){return arguments.length<2?u(n[r])||u(o[r]):n[r]&&n[r][e]||o[r]&&o[r][e]}},function(r,e){var t=Math.ceil,n=Math.floor;r.exports=function(r){return isNaN(r=+r)?0:(r>0?n:t)(r)}},function(r,e){r.exports=function(r,e){return{enumerable:!(1&r),configurable:!(2&r),writable:!(4&r),value:e}}},function(r,e,t){var n,o,u,i=t(94),s=t(0),a=t(5),c=t(9),l=t(6),p=t(38),y=t(28),f=t(29),d=s.WeakMap;if(i){var m=p.state||(p.state=new d),g=m.get,b=m.has,h=m.set;n=function(r,e){return e.facade=r,h.call(m,r,e),e},o=function(r){return g.call(m,r)||{}},u=function(r){return b.call(m,r)}}else{var E=y("state");f[E]=!0,n=function(r,e){return e.facade=r,c(r,E,e),e},o=function(r){return l(r,E)?r[E]:{}},u=function(r){return l(r,E)}}r.exports={set:n,get:o,has:u,enforce:function(r){return u(r)?o(r):n(r,{})},getterFor:function(r){return function(e){var t;if(!a(e)||(t=o(e)).type!==r)throw TypeError("Incompatible receiver, "+r+" required");return t}}}},function(r,e){r.exports=!1},function(r,e){r.exports=function(r){if("function"!=typeof r)throw TypeError(String(r)+" is not a function");return r}},function(r,e){r.exports={}},function(r,e,t){var n=t(8),o=t(51),u=t(21),i=t(12),s=t(27),a=t(6),c=t(52),l=Object.getOwnPropertyDescriptor;e.f=n?l:function(r,e){if(r=i(r),e=s(e,!0),c)try{return l(r,e)}catch(r){}if(a(r,e))return u(!o.f.call(r,e),r[e])}},function(r,e,t){var n=t(5);r.exports=function(r,e){if(!n(r))return r;var t,o;if(e&&"function"==typeof(t=r.toString)&&!n(o=t.call(r)))return o;if("function"==typeof(t=r.valueOf)&&!n(o=t.call(r)))return o;if(!e&&"function"==typeof(t=r.toString)&&!n(o=t.call(r)))return o;throw TypeError("Can't convert object to primitive value")}},function(r,e,t){var n=t(39),o=t(40),u=n("keys");r.exports=function(r){return u[r]||(u[r]=o(r))}},function(r,e){r.exports={}},function(r,e,t){var n=t(7).f,o=t(6),u=t(1)("toStringTag");r.exports=function(r,e,t){r&&!o(r=t?r:r.prototype,u)&&n(r,u,{configurable:!0,value:e})}},function(r,e,t){var n=t(15),o=t(0);r.exports="process"==n(o.process)},function(r,e,t){var n=t(24);r.exports=function(r,e,t){if(n(r),void 0===e)return r;switch(t){case 0:return function(){return r.call(e)};case 1:return function(t){return r.call(e,t)};case 2:return function(t,n){return r.call(e,t,n)};case 3:return function(t,n,o){return r.call(e,t,n,o)}}return function(){return r.apply(e,arguments)}}},function(r,e,t){"use strict";var n,o,u=t(72),i=t(112),s=RegExp.prototype.exec,a=String.prototype.replace,c=s,l=(n=/a/,o=/b*/g,s.call(n,"a"),s.call(o,"a"),0!==n.lastIndex||0!==o.lastIndex),p=i.UNSUPPORTED_Y||i.BROKEN_CARET,y=void 0!==/()??/.exec("")[1];(l||y||p)&&(c=function(r){var e,t,n,o,i=this,c=p&&i.sticky,f=u.call(i),d=i.source,m=0,g=r;return c&&(-1===(f=f.replace("y","")).indexOf("g")&&(f+="g"),g=String(r).slice(i.lastIndex),i.lastIndex>0&&(!i.multiline||i.multiline&&"\n"!==r[i.lastIndex-1])&&(d="(?: "+d+")",g=" "+g,m++),t=new RegExp("^(?:"+d+")",f)),y&&(t=new RegExp("^"+d+"$(?!\\s)",f)),l&&(e=i.lastIndex),n=s.call(c?t:i,g),c?n?(n.input=n.input.slice(m),n[0]=n[0].slice(m),n.index=i.lastIndex,i.lastIndex+=n[0].length):i.lastIndex=0:l&&n&&(i.lastIndex=i.global?n.index+n[0].length:e),y&&n&&n.length>1&&a.call(n[0],t,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(n[o]=void 0)})),n}),r.exports=c},function(r,e,t){var n=t(2),o=t(15),u="".split;r.exports=n((function(){return!Object("z").propertyIsEnumerable(0)}))?function(r){return"String"==o(r)?u.call(r,""):Object(r)}:Object},function(r,e,t){var n=t(0),o=t(5),u=n.document,i=o(u)&&o(u.createElement);r.exports=function(r){return i?u.createElement(r):{}}},function(r,e,t){var n=t(0),o=t(9);r.exports=function(r,e){try{o(n,r,e)}catch(t){n[r]=e}return e}},function(r,e,t){var n=t(38),o=Function.toString;"function"!=typeof n.inspectSource&&(n.inspectSource=function(r){return o.call(r)}),r.exports=n.inspectSource},function(r,e,t){var n=t(0),o=t(36),u=n["__core-js_shared__"]||o("__core-js_shared__",{});r.exports=u},function(r,e,t){var n=t(23),o=t(38);(r.exports=function(r,e){return o[r]||(o[r]=void 0!==e?e:{})})("versions",[]).push({version:"3.9.1",mode:n?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},function(r,e){var t=0,n=Math.random();r.exports=function(r){return"Symbol("+String(void 0===r?"":r)+")_"+(++t+n).toString(36)}},function(r,e,t){var n=t(55),o=t(42).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(r){return n(r,o)}},function(r,e){r.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(r,e,t){var n=t(31),o=t(44),u=t(2);r.exports=!!Object.getOwnPropertySymbols&&!u((function(){return!Symbol.sham&&(n?38===o:o>37&&o<41)}))},function(r,e,t){var n,o,u=t(0),i=t(45),s=u.process,a=s&&s.versions,c=a&&a.v8;c?o=(n=c.split("."))[0]+n[1]:i&&(!(n=i.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=i.match(/Chrome\/(\d+)/))&&(o=n[1]),r.exports=o&&+o},function(r,e,t){var n=t(19);r.exports=n("navigator","userAgent")||""},function(r,e,t){var n={};n[t(1)("toStringTag")]="z",r.exports="[object z]"===String(n)},function(r,e,t){var n=t(55),o=t(42);r.exports=Object.keys||function(r){return n(r,o)}},function(r,e,t){var n=t(15);r.exports=Array.isArray||function(r){return"Array"==n(r)}},function(r,e,t){var n,o=t(3),u=t(117),i=t(42),s=t(29),a=t(67),c=t(35),l=t(28),p=l("IE_PROTO"),y=function(){},f=function(r){return"<script>"+r+"<\/script>"},d=function(){try{n=document.domain&&new ActiveXObject("htmlfile")}catch(r){}var r,e;d=n?function(r){r.write(f("")),r.close();var e=r.parentWindow.Object;return r=null,e}(n):((e=c("iframe")).style.display="none",a.appendChild(e),e.src=String("javascript:"),(r=e.contentWindow.document).open(),r.write(f("document.F=Object")),r.close(),r.F);for(var t=i.length;t--;)delete d.prototype[i[t]];return d()};s[p]=!0,r.exports=Object.create||function(r,e){var t;return null!==r?(y.prototype=o(r),t=new y,y.prototype=null,t[p]=r):t=d(),void 0===e?t:u(t,e)}},function(r,e,t){"use strict";var n=String.prototype.replace,o=/%20/g,u="RFC1738",i="RFC3986";r.exports={default:i,formatters:{RFC1738:function(r){return n.call(r,o,"+")},RFC3986:function(r){return String(r)}},RFC1738:u,RFC3986:i}},function(r,e,t){"use strict";var n={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,u=o&&!n.call({1:2},1);e.f=u?function(r){var e=o(this,r);return!!e&&e.enumerable}:n},function(r,e,t){var n=t(8),o=t(2),u=t(35);r.exports=!n&&!o((function(){return 7!=Object.defineProperty(u("div"),"a",{get:function(){return 7}}).a}))},function(r,e,t){var n=t(6),o=t(95),u=t(26),i=t(7);r.exports=function(r,e){for(var t=o(e),s=i.f,a=u.f,c=0;c<t.length;c++){var l=t[c];n(r,l)||s(r,l,a(e,l))}}},function(r,e,t){var n=t(0);r.exports=n},function(r,e,t){var n=t(6),o=t(12),u=t(96).indexOf,i=t(29);r.exports=function(r,e){var t,s=o(r),a=0,c=[];for(t in s)!n(i,t)&&n(s,t)&&c.push(t);for(;e.length>a;)n(s,t=e[a++])&&(~u(c,t)||c.push(t));return c}},function(r,e,t){var n=t(20),o=Math.max,u=Math.min;r.exports=function(r,e){var t=n(r);return t<0?o(t+e,0):u(t,e)}},function(r,e){e.f=Object.getOwnPropertySymbols},function(r,e,t){var n=t(2),o=/#|\.prototype\./,u=function(r,e){var t=s[i(r)];return t==c||t!=a&&("function"==typeof e?n(e):!!e)},i=u.normalize=function(r){return String(r).replace(o,".").toLowerCase()},s=u.data={},a=u.NATIVE="N",c=u.POLYFILL="P";r.exports=u},function(r,e,t){var n=t(43);r.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(r,e,t){var n=t(1),o=t(25),u=n("iterator"),i=Array.prototype;r.exports=function(r){return void 0!==r&&(o.Array===r||i[u]===r)}},function(r,e,t){var n=t(62),o=t(25),u=t(1)("iterator");r.exports=function(r){if(null!=r)return r[u]||r["@@iterator"]||o[n(r)]}},function(r,e,t){var n=t(46),o=t(15),u=t(1)("toStringTag"),i="Arguments"==o(function(){return arguments}());r.exports=n?o:function(r){var e,t,n;return void 0===r?"Undefined":null===r?"Null":"string"==typeof(t=function(r,e){try{return r[e]}catch(r){}}(e=Object(r),u))?t:i?o(e):"Object"==(n=o(e))&&"function"==typeof e.callee?"Arguments":n}},function(r,e,t){var n=t(3);r.exports=function(r){var e=r.return;if(void 0!==e)return n(e.call(r)).value}},function(r,e,t){var n=t(1)("iterator"),o=!1;try{var u=0,i={next:function(){return{done:!!u++}},return:function(){o=!0}};i[n]=function(){return this},Array.from(i,(function(){throw 2}))}catch(r){}r.exports=function(r,e){if(!e&&!o)return!1;var t=!1;try{var u={};u[n]=function(){return{next:function(){return{done:t=!0}}}},r(u)}catch(r){}return t}},function(r,e,t){var n=t(3),o=t(24),u=t(1)("species");r.exports=function(r,e){var t,i=n(r).constructor;return void 0===i||null==(t=n(i)[u])?e:o(t)}},function(r,e,t){var n,o,u,i=t(0),s=t(2),a=t(32),c=t(67),l=t(35),p=t(68),y=t(31),f=i.location,d=i.setImmediate,m=i.clearImmediate,g=i.process,b=i.MessageChannel,h=i.Dispatch,E=0,v={},k=function(r){if(v.hasOwnProperty(r)){var e=v[r];delete v[r],e()}},x=function(r){return function(){k(r)}},_=function(r){k(r.data)},w=function(r){i.postMessage(r+"",f.protocol+"//"+f.host)};d&&m||(d=function(r){for(var e=[],t=1;arguments.length>t;)e.push(arguments[t++]);return v[++E]=function(){("function"==typeof r?r:Function(r)).apply(void 0,e)},n(E),E},m=function(r){delete v[r]},y?n=function(r){g.nextTick(x(r))}:h&&h.now?n=function(r){h.now(x(r))}:b&&!p?(u=(o=new b).port2,o.port1.onmessage=_,n=a(u.postMessage,u,1)):i.addEventListener&&"function"==typeof postMessage&&!i.importScripts&&f&&"file:"!==f.protocol&&!s(w)?(n=w,i.addEventListener("message",_,!1)):n="onreadystatechange"in l("script")?function(r){c.appendChild(l("script")).onreadystatechange=function(){c.removeChild(this),k(r)}}:function(r){setTimeout(x(r),0)}),r.exports={set:d,clear:m}},function(r,e,t){var n=t(19);r.exports=n("document","documentElement")},function(r,e,t){var n=t(45);r.exports=/(iphone|ipod|ipad).*applewebkit/i.test(n)},function(r,e,t){"use strict";var n=t(24),o=function(r){var e,t;this.promise=new r((function(r,n){if(void 0!==e||void 0!==t)throw TypeError("Bad Promise constructor");e=r,t=n})),this.resolve=n(e),this.reject=n(t)};r.exports.f=function(r){return new o(r)}},function(r,e,t){"use strict";t(71);var n=t(13),o=t(2),u=t(1),i=t(33),s=t(9),a=u("species"),c=!o((function(){var r=/./;return r.exec=function(){var r=[];return r.groups={a:"7"},r},"7"!=="".replace(r,"$<a>")})),l="$0"==="a".replace(/./,"$0"),p=u("replace"),y=!!/./[p]&&""===/./[p]("a","$0"),f=!o((function(){var r=/(?:)/,e=r.exec;r.exec=function(){return e.apply(this,arguments)};var t="ab".split(r);return 2!==t.length||"a"!==t[0]||"b"!==t[1]}));r.exports=function(r,e,t,p){var d=u(r),m=!o((function(){var e={};return e[d]=function(){return 7},7!=""[r](e)})),g=m&&!o((function(){var e=!1,t=/a/;return"split"===r&&((t={}).constructor={},t.constructor[a]=function(){return t},t.flags="",t[d]=/./[d]),t.exec=function(){return e=!0,null},t[d](""),!e}));if(!m||!g||"replace"===r&&(!c||!l||y)||"split"===r&&!f){var b=/./[d],h=t(d,""[r],(function(r,e,t,n,o){return e.exec===i?m&&!o?{done:!0,value:b.call(e,t,n)}:{done:!0,value:r.call(t,e,n)}:{done:!1}}),{REPLACE_KEEPS_$0:l,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:y}),E=h[0],v=h[1];n(String.prototype,r,E),n(RegExp.prototype,d,2==e?function(r,e){return v.call(r,this,e)}:function(r){return v.call(r,this)})}p&&s(RegExp.prototype[d],"sham",!0)}},function(r,e,t){"use strict";var n=t(4),o=t(33);n({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},function(r,e,t){"use strict";var n=t(3);r.exports=function(){var r=n(this),e="";return r.global&&(e+="g"),r.ignoreCase&&(e+="i"),r.multiline&&(e+="m"),r.dotAll&&(e+="s"),r.unicode&&(e+="u"),r.sticky&&(e+="y"),e}},function(r,e,t){"use strict";var n=t(74).charAt;r.exports=function(r,e,t){return e+(t?n(r,e).length:1)}},function(r,e,t){var n=t(20),o=t(18),u=function(r){return function(e,t){var u,i,s=String(o(e)),a=n(t),c=s.length;return a<0||a>=c?r?"":void 0:(u=s.charCodeAt(a))<55296||u>56319||a+1===c||(i=s.charCodeAt(a+1))<56320||i>57343?r?s.charAt(a):u:r?s.slice(a,a+2):i-56320+(u-55296<<10)+65536}};r.exports={codeAt:u(!1),charAt:u(!0)}},function(r,e,t){var n=t(15),o=t(33);r.exports=function(r,e){var t=r.exec;if("function"==typeof t){var u=t.call(r,e);if("object"!=typeof u)throw TypeError("RegExp exec method returned something other than an Object or null");return u}if("RegExp"!==n(r))throw TypeError("RegExp#exec called on incompatible receiver");return o.call(r,e)}},function(r,e,t){"use strict";var n=t(4),o=t(34),u=t(12),i=t(77),s=[].join,a=o!=Object,c=i("join",",");n({target:"Array",proto:!0,forced:a||!c},{join:function(r){return s.call(u(this),void 0===r?",":r)}})},function(r,e,t){"use strict";var n=t(2);r.exports=function(r,e){var t=[][r];return!!t&&n((function(){t.call(null,e||function(){throw 1},1)}))}},function(r,e,t){var n=t(4),o=t(17),u=t(47);n({target:"Object",stat:!0,forced:t(2)((function(){u(1)}))},{keys:function(r){return u(o(r))}})},function(r,e,t){var n=t(1);e.f=n},function(r,e,t){var n=t(54),o=t(6),u=t(79),i=t(7).f;r.exports=function(r){var e=n.Symbol||(n.Symbol={});o(e,r)||i(e,r,{value:u.f(r)})}},function(r,e,t){var n=t(32),o=t(34),u=t(17),i=t(16),s=t(119),a=[].push,c=function(r){var e=1==r,t=2==r,c=3==r,l=4==r,p=6==r,y=7==r,f=5==r||p;return function(d,m,g,b){for(var h,E,v=u(d),k=o(v),x=n(m,g,3),_=i(k.length),w=0,S=b||s,P=e?S(d,_):t||y?S(d,0):void 0;_>w;w++)if((f||w in k)&&(E=x(h=k[w],w,v),r))if(e)P[w]=E;else if(E)switch(r){case 3:return!0;case 5:return h;case 6:return w;case 2:a.call(P,h)}else switch(r){case 4:return!1;case 7:a.call(P,h)}return p?-1:c||l?l:P}};r.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6),filterOut:c(7)}},function(r,e,t){"use strict";var n=t(4),o=t(123),u=t(84),i=t(125),s=t(30),a=t(9),c=t(13),l=t(1),p=t(23),y=t(25),f=t(83),d=f.IteratorPrototype,m=f.BUGGY_SAFARI_ITERATORS,g=l("iterator"),b=function(){return this};r.exports=function(r,e,t,l,f,h,E){o(t,e,l);var v,k,x,_=function(r){if(r===f&&A)return A;if(!m&&r in P)return P[r];switch(r){case"keys":case"values":case"entries":return function(){return new t(this,r)}}return function(){return new t(this)}},w=e+" Iterator",S=!1,P=r.prototype,O=P[g]||P["@@iterator"]||f&&P[f],A=!m&&O||_(f),R="Array"==e&&P.entries||O;if(R&&(v=u(R.call(new r)),d!==Object.prototype&&v.next&&(p||u(v)===d||(i?i(v,d):"function"!=typeof v[g]&&a(v,g,b)),s(v,w,!0,!0),p&&(y[w]=b))),"values"==f&&O&&"values"!==O.name&&(S=!0,A=function(){return O.call(this)}),p&&!E||P[g]===A||a(P,g,A),y[e]=A,f)if(k={values:_("values"),keys:h?A:_("keys"),entries:_("entries")},E)for(x in k)(m||S||!(x in P))&&c(P,x,k[x]);else n({target:e,proto:!0,forced:m||S},k);return k}},function(r,e,t){"use strict";var n,o,u,i=t(2),s=t(84),a=t(9),c=t(6),l=t(1),p=t(23),y=l("iterator"),f=!1;[].keys&&("next"in(u=[].keys())?(o=s(s(u)))!==Object.prototype&&(n=o):f=!0);var d=null==n||i((function(){var r={};return n[y].call(r)!==r}));d&&(n={}),p&&!d||c(n,y)||a(n,y,(function(){return this})),r.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:f}},function(r,e,t){var n=t(6),o=t(17),u=t(28),i=t(124),s=u("IE_PROTO"),a=Object.prototype;r.exports=i?Object.getPrototypeOf:function(r){return r=o(r),n(r,s)?r[s]:"function"==typeof r.constructor&&r instanceof r.constructor?r.constructor.prototype:r instanceof Object?a:null}},function(r,e,t){"use strict";var n=t(12),o=t(127),u=t(25),i=t(22),s=t(82),a=i.set,c=i.getterFor("Array Iterator");r.exports=s(Array,"Array",(function(r,e){a(this,{type:"Array Iterator",target:n(r),index:0,kind:e})}),(function(){var r=c(this),e=r.target,t=r.kind,n=r.index++;return!e||n>=e.length?(r.target=void 0,{value:void 0,done:!0}):"keys"==t?{value:n,done:!1}:"values"==t?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}}),"values"),u.Arguments=u.Array,o("keys"),o("values"),o("entries")},function(r,e,t){"use strict";var n=t(27),o=t(7),u=t(21);r.exports=function(r,e,t){var i=n(e);i in r?o.f(r,i,u(0,t)):r[i]=t}},function(r,e,t){var n=t(2),o=t(1),u=t(44),i=o("species");r.exports=function(r){return u>=51||!n((function(){var e=[];return(e.constructor={})[i]=function(){return{foo:1}},1!==e[r](Boolean).foo}))}},function(r,e,t){var n=t(8),o=t(7).f,u=Function.prototype,i=u.toString,s=/^\s*function ([^ (]*)/;n&&!("name"in u)&&o(u,"name",{configurable:!0,get:function(){try{return i.call(this).match(s)[1]}catch(r){return""}}})},function(r,e,t){"use strict";var n=t(50),o=Object.prototype.hasOwnProperty,u=Array.isArray,i=function(){for(var r=[],e=0;e<256;++e)r.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return r}(),s=function(r,e){for(var t=e&&e.plainObjects?Object.create(null):{},n=0;n<r.length;++n)void 0!==r[n]&&(t[n]=r[n]);return t};r.exports={arrayToObject:s,assign:function(r,e){return Object.keys(e).reduce((function(r,t){return r[t]=e[t],r}),r)},combine:function(r,e){return[].concat(r,e)},compact:function(r){for(var e=[{obj:{o:r},prop:"o"}],t=[],n=0;n<e.length;++n)for(var o=e[n],i=o.obj[o.prop],s=Object.keys(i),a=0;a<s.length;++a){var c=s[a],l=i[c];"object"==typeof l&&null!==l&&-1===t.indexOf(l)&&(e.push({obj:i,prop:c}),t.push(l))}return function(r){for(;r.length>1;){var e=r.pop(),t=e.obj[e.prop];if(u(t)){for(var n=[],o=0;o<t.length;++o)void 0!==t[o]&&n.push(t[o]);e.obj[e.prop]=n}}}(e),r},decode:function(r,e,t){var n=r.replace(/\+/g," ");if("iso-8859-1"===t)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(r){return n}},encode:function(r,e,t,o,u){if(0===r.length)return r;var s=r;if("symbol"==typeof r?s=Symbol.prototype.toString.call(r):"string"!=typeof r&&(s=String(r)),"iso-8859-1"===t)return escape(s).replace(/%u[0-9a-f]{4}/gi,(function(r){return"%26%23"+parseInt(r.slice(2),16)+"%3B"}));for(var a="",c=0;c<s.length;++c){var l=s.charCodeAt(c);45===l||46===l||95===l||126===l||l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||u===n.RFC1738&&(40===l||41===l)?a+=s.charAt(c):l<128?a+=i[l]:l<2048?a+=i[192|l>>6]+i[128|63&l]:l<55296||l>=57344?a+=i[224|l>>12]+i[128|l>>6&63]+i[128|63&l]:(c+=1,l=65536+((1023&l)<<10|1023&s.charCodeAt(c)),a+=i[240|l>>18]+i[128|l>>12&63]+i[128|l>>6&63]+i[128|63&l])}return a},isBuffer:function(r){return!(!r||"object"!=typeof r)&&!!(r.constructor&&r.constructor.isBuffer&&r.constructor.isBuffer(r))},isRegExp:function(r){return"[object RegExp]"===Object.prototype.toString.call(r)},maybeMap:function(r,e){if(u(r)){for(var t=[],n=0;n<r.length;n+=1)t.push(e(r[n]));return t}return e(r)},merge:function r(e,t,n){if(!t)return e;if("object"!=typeof t){if(u(e))e.push(t);else{if(!e||"object"!=typeof e)return[e,t];(n&&(n.plainObjects||n.allowPrototypes)||!o.call(Object.prototype,t))&&(e[t]=!0)}return e}if(!e||"object"!=typeof e)return[e].concat(t);var i=e;return u(e)&&!u(t)&&(i=s(e,n)),u(e)&&u(t)?(t.forEach((function(t,u){if(o.call(e,u)){var i=e[u];i&&"object"==typeof i&&t&&"object"==typeof t?e[u]=r(i,t,n):e.push(t)}else e[u]=t})),e):Object.keys(t).reduce((function(e,u){var i=t[u];return o.call(e,u)?e[u]=r(e[u],i,n):e[u]=i,e}),i)}}},function(r,e){var t={utf8:{stringToBytes:function(r){return t.bin.stringToBytes(unescape(encodeURIComponent(r)))},bytesToString:function(r){return decodeURIComponent(escape(t.bin.bytesToString(r)))}},bin:{stringToBytes:function(r){for(var e=[],t=0;t<r.length;t++)e.push(255&r.charCodeAt(t));return e},bytesToString:function(r){for(var e=[],t=0;t<r.length;t++)e.push(String.fromCharCode(r[t]));return e.join("")}}};r.exports=t},function(r,e,t){"use strict";var n=t(134),o=t(135),u=t(50);r.exports={formats:u,parse:o,stringify:n}},function(r,e,t){var n,o,u,i,s;n=t(139),o=t(90).utf8,u=t(140),i=t(90).bin,(s=function(r,e){r.constructor==String?r=e&&"binary"===e.encoding?i.stringToBytes(r):o.stringToBytes(r):u(r)?r=Array.prototype.slice.call(r,0):Array.isArray(r)||r.constructor===Uint8Array||(r=r.toString());for(var t=n.bytesToWords(r),a=8*r.length,c=1732584193,l=-271733879,p=-1732584194,y=271733878,f=0;f<t.length;f++)t[f]=16711935&(t[f]<<8|t[f]>>>24)|4278255360&(t[f]<<24|t[f]>>>8);t[a>>>5]|=128<<a%32,t[14+(a+64>>>9<<4)]=a;var d=s._ff,m=s._gg,g=s._hh,b=s._ii;for(f=0;f<t.length;f+=16){var h=c,E=l,v=p,k=y;c=d(c,l,p,y,t[f+0],7,-680876936),y=d(y,c,l,p,t[f+1],12,-389564586),p=d(p,y,c,l,t[f+2],17,606105819),l=d(l,p,y,c,t[f+3],22,-1044525330),c=d(c,l,p,y,t[f+4],7,-176418897),y=d(y,c,l,p,t[f+5],12,1200080426),p=d(p,y,c,l,t[f+6],17,-1473231341),l=d(l,p,y,c,t[f+7],22,-45705983),c=d(c,l,p,y,t[f+8],7,1770035416),y=d(y,c,l,p,t[f+9],12,-1958414417),p=d(p,y,c,l,t[f+10],17,-42063),l=d(l,p,y,c,t[f+11],22,-1990404162),c=d(c,l,p,y,t[f+12],7,1804603682),y=d(y,c,l,p,t[f+13],12,-40341101),p=d(p,y,c,l,t[f+14],17,-1502002290),c=m(c,l=d(l,p,y,c,t[f+15],22,1236535329),p,y,t[f+1],5,-165796510),y=m(y,c,l,p,t[f+6],9,-1069501632),p=m(p,y,c,l,t[f+11],14,643717713),l=m(l,p,y,c,t[f+0],20,-373897302),c=m(c,l,p,y,t[f+5],5,-701558691),y=m(y,c,l,p,t[f+10],9,38016083),p=m(p,y,c,l,t[f+15],14,-660478335),l=m(l,p,y,c,t[f+4],20,-405537848),c=m(c,l,p,y,t[f+9],5,568446438),y=m(y,c,l,p,t[f+14],9,-1019803690),p=m(p,y,c,l,t[f+3],14,-187363961),l=m(l,p,y,c,t[f+8],20,1163531501),c=m(c,l,p,y,t[f+13],5,-1444681467),y=m(y,c,l,p,t[f+2],9,-51403784),p=m(p,y,c,l,t[f+7],14,1735328473),c=g(c,l=m(l,p,y,c,t[f+12],20,-1926607734),p,y,t[f+5],4,-378558),y=g(y,c,l,p,t[f+8],11,-2022574463),p=g(p,y,c,l,t[f+11],16,1839030562),l=g(l,p,y,c,t[f+14],23,-35309556),c=g(c,l,p,y,t[f+1],4,-1530992060),y=g(y,c,l,p,t[f+4],11,1272893353),p=g(p,y,c,l,t[f+7],16,-155497632),l=g(l,p,y,c,t[f+10],23,-1094730640),c=g(c,l,p,y,t[f+13],4,681279174),y=g(y,c,l,p,t[f+0],11,-358537222),p=g(p,y,c,l,t[f+3],16,-722521979),l=g(l,p,y,c,t[f+6],23,76029189),c=g(c,l,p,y,t[f+9],4,-640364487),y=g(y,c,l,p,t[f+12],11,-421815835),p=g(p,y,c,l,t[f+15],16,530742520),c=b(c,l=g(l,p,y,c,t[f+2],23,-995338651),p,y,t[f+0],6,-198630844),y=b(y,c,l,p,t[f+7],10,1126891415),p=b(p,y,c,l,t[f+14],15,-1416354905),l=b(l,p,y,c,t[f+5],21,-57434055),c=b(c,l,p,y,t[f+12],6,1700485571),y=b(y,c,l,p,t[f+3],10,-1894986606),p=b(p,y,c,l,t[f+10],15,-1051523),l=b(l,p,y,c,t[f+1],21,-2054922799),c=b(c,l,p,y,t[f+8],6,1873313359),y=b(y,c,l,p,t[f+15],10,-30611744),p=b(p,y,c,l,t[f+6],15,-1560198380),l=b(l,p,y,c,t[f+13],21,1309151649),c=b(c,l,p,y,t[f+4],6,-145523070),y=b(y,c,l,p,t[f+11],10,-1120210379),p=b(p,y,c,l,t[f+2],15,718787259),l=b(l,p,y,c,t[f+9],21,-343485551),c=c+h>>>0,l=l+E>>>0,p=p+v>>>0,y=y+k>>>0}return n.endian([c,l,p,y])})._ff=function(r,e,t,n,o,u,i){var s=r+(e&t|~e&n)+(o>>>0)+i;return(s<<u|s>>>32-u)+e},s._gg=function(r,e,t,n,o,u,i){var s=r+(e&n|t&~n)+(o>>>0)+i;return(s<<u|s>>>32-u)+e},s._hh=function(r,e,t,n,o,u,i){var s=r+(e^t^n)+(o>>>0)+i;return(s<<u|s>>>32-u)+e},s._ii=function(r,e,t,n,o,u,i){var s=r+(t^(e|~n))+(o>>>0)+i;return(s<<u|s>>>32-u)+e},s._blocksize=16,s._digestsize=16,r.exports=function(r,e){if(null==r)throw new Error("Illegal argument "+r);var t=n.wordsToBytes(s(r,e));return e&&e.asBytes?t:e&&e.asString?i.bytesToString(t):n.bytesToHex(t)}},function(r,e){var t;t=function(){return this}();try{t=t||new Function("return this")()}catch(r){"object"==typeof window&&(t=window)}r.exports=t},function(r,e,t){var n=t(0),o=t(37),u=n.WeakMap;r.exports="function"==typeof u&&/native code/.test(o(u))},function(r,e,t){var n=t(19),o=t(41),u=t(57),i=t(3);r.exports=n("Reflect","ownKeys")||function(r){var e=o.f(i(r)),t=u.f;return t?e.concat(t(r)):e}},function(r,e,t){var n=t(12),o=t(16),u=t(56),i=function(r){return function(e,t,i){var s,a=n(e),c=o(a.length),l=u(i,c);if(r&&t!=t){for(;c>l;)if((s=a[l++])!=s)return!0}else for(;c>l;l++)if((r||l in a)&&a[l]===t)return r||l||0;return!r&&-1}};r.exports={includes:i(!0),indexOf:i(!1)}},function(r,e,t){var n=t(0);r.exports=n.Promise},function(r,e,t){var n=t(13);r.exports=function(r,e,t){for(var o in e)n(r,o,e[o],t);return r}},function(r,e,t){"use strict";var n=t(19),o=t(7),u=t(1),i=t(8),s=u("species");r.exports=function(r){var e=n(r),t=o.f;i&&e&&!e[s]&&t(e,s,{configurable:!0,get:function(){return this}})}},function(r,e){r.exports=function(r,e,t){if(!(r instanceof e))throw TypeError("Incorrect "+(t?t+" ":"")+"invocation");return r}},function(r,e,t){var n=t(3),o=t(60),u=t(16),i=t(32),s=t(61),a=t(63),c=function(r,e){this.stopped=r,this.result=e};r.exports=function(r,e,t){var l,p,y,f,d,m,g,b=t&&t.that,h=!(!t||!t.AS_ENTRIES),E=!(!t||!t.IS_ITERATOR),v=!(!t||!t.INTERRUPTED),k=i(e,b,1+h+v),x=function(r){return l&&a(l),new c(!0,r)},_=function(r){return h?(n(r),v?k(r[0],r[1],x):k(r[0],r[1])):v?k(r,x):k(r)};if(E)l=r;else{if("function"!=typeof(p=s(r)))throw TypeError("Target is not iterable");if(o(p)){for(y=0,f=u(r.length);f>y;y++)if((d=_(r[y]))&&d instanceof c)return d;return new c(!1)}l=p.call(r)}for(m=l.next;!(g=m.call(l)).done;){try{d=_(g.value)}catch(r){throw a(l),r}if("object"==typeof d&&d&&d instanceof c)return d}return new c(!1)}},function(r,e,t){var n,o,u,i,s,a,c,l,p=t(0),y=t(26).f,f=t(66).set,d=t(68),m=t(103),g=t(31),b=p.MutationObserver||p.WebKitMutationObserver,h=p.document,E=p.process,v=p.Promise,k=y(p,"queueMicrotask"),x=k&&k.value;x||(n=function(){var r,e;for(g&&(r=E.domain)&&r.exit();o;){e=o.fn,o=o.next;try{e()}catch(r){throw o?i():u=void 0,r}}u=void 0,r&&r.enter()},d||g||m||!b||!h?v&&v.resolve?(c=v.resolve(void 0),l=c.then,i=function(){l.call(c,n)}):i=g?function(){E.nextTick(n)}:function(){f.call(p,n)}:(s=!0,a=h.createTextNode(""),new b(n).observe(a,{characterData:!0}),i=function(){a.data=s=!s})),r.exports=x||function(r){var e={fn:r,next:void 0};u&&(u.next=e),o||(o=e,i()),u=e}},function(r,e,t){var n=t(45);r.exports=/web0s(?!.*chrome)/i.test(n)},function(r,e,t){var n=t(3),o=t(5),u=t(69);r.exports=function(r,e){if(n(r),o(e)&&e.constructor===r)return e;var t=u.f(r);return(0,t.resolve)(e),t.promise}},function(r,e,t){var n=t(0);r.exports=function(r,e){var t=n.console;t&&t.error&&(1===arguments.length?t.error(r):t.error(r,e))}},function(r,e){r.exports=function(r){try{return{error:!1,value:r()}}catch(r){return{error:!0,value:r}}}},function(r,e,t){"use strict";var n=t(46),o=t(62);r.exports=n?{}.toString:function(){return"[object "+o(this)+"]"}},function(r,e,t){"use strict";var n=t(4),o=t(20),u=t(109),i=t(110),s=t(2),a=1..toFixed,c=Math.floor,l=function(r,e,t){return 0===e?t:e%2==1?l(r,e-1,t*r):l(r*r,e/2,t)},p=function(r,e,t){for(var n=-1,o=t;++n<6;)o+=e*r[n],r[n]=o%1e7,o=c(o/1e7)},y=function(r,e){for(var t=6,n=0;--t>=0;)n+=r[t],r[t]=c(n/e),n=n%e*1e7},f=function(r){for(var e=6,t="";--e>=0;)if(""!==t||0===e||0!==r[e]){var n=String(r[e]);t=""===t?n:t+i.call("0",7-n.length)+n}return t};n({target:"Number",proto:!0,forced:a&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!s((function(){a.call({})}))},{toFixed:function(r){var e,t,n,s,a=u(this),c=o(r),d=[0,0,0,0,0,0],m="",g="0";if(c<0||c>20)throw RangeError("Incorrect fraction digits");if(a!=a)return"NaN";if(a<=-1e21||a>=1e21)return String(a);if(a<0&&(m="-",a=-a),a>1e-21)if(t=(e=function(r){for(var e=0,t=r;t>=4096;)e+=12,t/=4096;for(;t>=2;)e+=1,t/=2;return e}(a*l(2,69,1))-69)<0?a*l(2,-e,1):a/l(2,e,1),t*=4503599627370496,(e=52-e)>0){for(p(d,0,t),n=c;n>=7;)p(d,1e7,0),n-=7;for(p(d,l(10,n,1),0),n=e-1;n>=23;)y(d,1<<23),n-=23;y(d,1<<n),p(d,1,1),y(d,2),g=f(d)}else p(d,0,t),p(d,1<<-e,0),g=f(d)+i.call("0",c);return g=c>0?m+((s=g.length)<=c?"0."+i.call("0",c-s)+g:g.slice(0,s-c)+"."+g.slice(s-c)):m+g}})},function(r,e,t){var n=t(15);r.exports=function(r){if("number"!=typeof r&&"Number"!=n(r))throw TypeError("Incorrect invocation");return+r}},function(r,e,t){"use strict";var n=t(20),o=t(18);r.exports="".repeat||function(r){var e=String(o(this)),t="",u=n(r);if(u<0||u==1/0)throw RangeError("Wrong number of repetitions");for(;u>0;(u>>>=1)&&(e+=e))1&u&&(t+=e);return t}},function(r,e,t){"use strict";var n=t(70),o=t(3),u=t(16),i=t(20),s=t(18),a=t(73),c=t(113),l=t(75),p=Math.max,y=Math.min;n("replace",2,(function(r,e,t,n){var f=n.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,d=n.REPLACE_KEEPS_$0,m=f?"$":"$0";return[function(t,n){var o=s(this),u=null==t?void 0:t[r];return void 0!==u?u.call(t,o,n):e.call(String(o),t,n)},function(r,n){if(!f&&d||"string"==typeof n&&-1===n.indexOf(m)){var s=t(e,r,this,n);if(s.done)return s.value}var g=o(r),b=String(this),h="function"==typeof n;h||(n=String(n));var E=g.global;if(E){var v=g.unicode;g.lastIndex=0}for(var k=[];;){var x=l(g,b);if(null===x)break;if(k.push(x),!E)break;""===String(x[0])&&(g.lastIndex=a(b,u(g.lastIndex),v))}for(var _,w="",S=0,P=0;P<k.length;P++){x=k[P];for(var O=String(x[0]),A=p(y(i(x.index),b.length),0),R=[],j=1;j<x.length;j++)R.push(void 0===(_=x[j])?_:String(_));var I=x.groups;if(h){var T=[O].concat(R,A,b);void 0!==I&&T.push(I);var N=String(n.apply(void 0,T))}else N=c(O,b,A,R,I,n);A>=S&&(w+=b.slice(S,A)+N,S=A+O.length)}return w+b.slice(S)}]}))},function(r,e,t){"use strict";var n=t(2);function o(r,e){return RegExp(r,e)}e.UNSUPPORTED_Y=n((function(){var r=o("a","y");return r.lastIndex=2,null!=r.exec("abcd")})),e.BROKEN_CARET=n((function(){var r=o("^r","gy");return r.lastIndex=2,null!=r.exec("str")}))},function(r,e,t){var n=t(17),o=Math.floor,u="".replace,i=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,s=/\$([$&'`]|\d{1,2})/g;r.exports=function(r,e,t,a,c,l){var p=t+r.length,y=a.length,f=s;return void 0!==c&&(c=n(c),f=i),u.call(l,f,(function(n,u){var i;switch(u.charAt(0)){case"$":return"$";case"&":return r;case"`":return e.slice(0,t);case"'":return e.slice(p);case"<":i=c[u.slice(1,-1)];break;default:var s=+u;if(0===s)return n;if(s>y){var l=o(s/10);return 0===l?n:l<=y?void 0===a[l-1]?u.charAt(1):a[l-1]+u.charAt(1):n}i=a[s-1]}return void 0===i?"":i}))}},function(r,e,t){"use strict";var n=t(70),o=t(115),u=t(3),i=t(18),s=t(65),a=t(73),c=t(16),l=t(75),p=t(33),y=t(2),f=[].push,d=Math.min,m=!y((function(){return!RegExp(4294967295,"y")}));n("split",2,(function(r,e,t){var n;return n="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(r,t){var n=String(i(this)),u=void 0===t?4294967295:t>>>0;if(0===u)return[];if(void 0===r)return[n];if(!o(r))return e.call(n,r,u);for(var s,a,c,l=[],y=(r.ignoreCase?"i":"")+(r.multiline?"m":"")+(r.unicode?"u":"")+(r.sticky?"y":""),d=0,m=new RegExp(r.source,y+"g");(s=p.call(m,n))&&!((a=m.lastIndex)>d&&(l.push(n.slice(d,s.index)),s.length>1&&s.index<n.length&&f.apply(l,s.slice(1)),c=s[0].length,d=a,l.length>=u));)m.lastIndex===s.index&&m.lastIndex++;return d===n.length?!c&&m.test("")||l.push(""):l.push(n.slice(d)),l.length>u?l.slice(0,u):l}:"0".split(void 0,0).length?function(r,t){return void 0===r&&0===t?[]:e.call(this,r,t)}:e,[function(e,t){var o=i(this),u=null==e?void 0:e[r];return void 0!==u?u.call(e,o,t):n.call(String(o),e,t)},function(r,o){var i=t(n,r,this,o,n!==e);if(i.done)return i.value;var p=u(r),y=String(this),f=s(p,RegExp),g=p.unicode,b=(p.ignoreCase?"i":"")+(p.multiline?"m":"")+(p.unicode?"u":"")+(m?"y":"g"),h=new f(m?p:"^(?:"+p.source+")",b),E=void 0===o?4294967295:o>>>0;if(0===E)return[];if(0===y.length)return null===l(h,y)?[y]:[];for(var v=0,k=0,x=[];k<y.length;){h.lastIndex=m?k:0;var _,w=l(h,m?y:y.slice(k));if(null===w||(_=d(c(h.lastIndex+(m?0:k)),y.length))===v)k=a(y,k,g);else{if(x.push(y.slice(v,k)),x.length===E)return x;for(var S=1;S<=w.length-1;S++)if(x.push(w[S]),x.length===E)return x;k=v=_}}return x.push(y.slice(v)),x}]}),!m)},function(r,e,t){var n=t(5),o=t(15),u=t(1)("match");r.exports=function(r){var e;return n(r)&&(void 0!==(e=r[u])?!!e:"RegExp"==o(r))}},function(r,e,t){"use strict";var n=t(4),o=t(0),u=t(19),i=t(23),s=t(8),a=t(43),c=t(59),l=t(2),p=t(6),y=t(48),f=t(5),d=t(3),m=t(17),g=t(12),b=t(27),h=t(21),E=t(49),v=t(47),k=t(41),x=t(118),_=t(57),w=t(26),S=t(7),P=t(51),O=t(9),A=t(13),R=t(39),j=t(28),I=t(29),T=t(40),N=t(1),L=t(79),C=t(80),U=t(30),B=t(22),D=t(81).forEach,F=j("hidden"),z=N("toPrimitive"),M=B.set,q=B.getterFor("Symbol"),J=Object.prototype,G=o.Symbol,W=u("JSON","stringify"),H=w.f,$=S.f,V=x.f,Y=P.f,Q=R("symbols"),K=R("op-symbols"),X=R("string-to-symbol-registry"),Z=R("symbol-to-string-registry"),rr=R("wks"),er=o.QObject,tr=!er||!er.prototype||!er.prototype.findChild,nr=s&&l((function(){return 7!=E($({},"a",{get:function(){return $(this,"a",{value:7}).a}})).a}))?function(r,e,t){var n=H(J,e);n&&delete J[e],$(r,e,t),n&&r!==J&&$(J,e,n)}:$,or=function(r,e){var t=Q[r]=E(G.prototype);return M(t,{type:"Symbol",tag:r,description:e}),s||(t.description=e),t},ur=c?function(r){return"symbol"==typeof r}:function(r){return Object(r)instanceof G},ir=function(r,e,t){r===J&&ir(K,e,t),d(r);var n=b(e,!0);return d(t),p(Q,n)?(t.enumerable?(p(r,F)&&r[F][n]&&(r[F][n]=!1),t=E(t,{enumerable:h(0,!1)})):(p(r,F)||$(r,F,h(1,{})),r[F][n]=!0),nr(r,n,t)):$(r,n,t)},sr=function(r,e){d(r);var t=g(e),n=v(t).concat(pr(t));return D(n,(function(e){s&&!ar.call(t,e)||ir(r,e,t[e])})),r},ar=function(r){var e=b(r,!0),t=Y.call(this,e);return!(this===J&&p(Q,e)&&!p(K,e))&&(!(t||!p(this,e)||!p(Q,e)||p(this,F)&&this[F][e])||t)},cr=function(r,e){var t=g(r),n=b(e,!0);if(t!==J||!p(Q,n)||p(K,n)){var o=H(t,n);return!o||!p(Q,n)||p(t,F)&&t[F][n]||(o.enumerable=!0),o}},lr=function(r){var e=V(g(r)),t=[];return D(e,(function(r){p(Q,r)||p(I,r)||t.push(r)})),t},pr=function(r){var e=r===J,t=V(e?K:g(r)),n=[];return D(t,(function(r){!p(Q,r)||e&&!p(J,r)||n.push(Q[r])})),n};(a||(A((G=function(){if(this instanceof G)throw TypeError("Symbol is not a constructor");var r=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,e=T(r),t=function(r){this===J&&t.call(K,r),p(this,F)&&p(this[F],e)&&(this[F][e]=!1),nr(this,e,h(1,r))};return s&&tr&&nr(J,e,{configurable:!0,set:t}),or(e,r)}).prototype,"toString",(function(){return q(this).tag})),A(G,"withoutSetter",(function(r){return or(T(r),r)})),P.f=ar,S.f=ir,w.f=cr,k.f=x.f=lr,_.f=pr,L.f=function(r){return or(N(r),r)},s&&($(G.prototype,"description",{configurable:!0,get:function(){return q(this).description}}),i||A(J,"propertyIsEnumerable",ar,{unsafe:!0}))),n({global:!0,wrap:!0,forced:!a,sham:!a},{Symbol:G}),D(v(rr),(function(r){C(r)})),n({target:"Symbol",stat:!0,forced:!a},{for:function(r){var e=String(r);if(p(X,e))return X[e];var t=G(e);return X[e]=t,Z[t]=e,t},keyFor:function(r){if(!ur(r))throw TypeError(r+" is not a symbol");if(p(Z,r))return Z[r]},useSetter:function(){tr=!0},useSimple:function(){tr=!1}}),n({target:"Object",stat:!0,forced:!a,sham:!s},{create:function(r,e){return void 0===e?E(r):sr(E(r),e)},defineProperty:ir,defineProperties:sr,getOwnPropertyDescriptor:cr}),n({target:"Object",stat:!0,forced:!a},{getOwnPropertyNames:lr,getOwnPropertySymbols:pr}),n({target:"Object",stat:!0,forced:l((function(){_.f(1)}))},{getOwnPropertySymbols:function(r){return _.f(m(r))}}),W)&&n({target:"JSON",stat:!0,forced:!a||l((function(){var r=G();return"[null]"!=W([r])||"{}"!=W({a:r})||"{}"!=W(Object(r))}))},{stringify:function(r,e,t){for(var n,o=[r],u=1;arguments.length>u;)o.push(arguments[u++]);if(n=e,(f(e)||void 0!==r)&&!ur(r))return y(e)||(e=function(r,e){if("function"==typeof n&&(e=n.call(this,r,e)),!ur(e))return e}),o[1]=e,W.apply(null,o)}});G.prototype[z]||O(G.prototype,z,G.prototype.valueOf),U(G,"Symbol"),I[F]=!0},function(r,e,t){var n=t(8),o=t(7),u=t(3),i=t(47);r.exports=n?Object.defineProperties:function(r,e){u(r);for(var t,n=i(e),s=n.length,a=0;s>a;)o.f(r,t=n[a++],e[t]);return r}},function(r,e,t){var n=t(12),o=t(41).f,u={}.toString,i="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];r.exports.f=function(r){return i&&"[object Window]"==u.call(r)?function(r){try{return o(r)}catch(r){return i.slice()}}(r):o(n(r))}},function(r,e,t){var n=t(5),o=t(48),u=t(1)("species");r.exports=function(r,e){var t;return o(r)&&("function"!=typeof(t=r.constructor)||t!==Array&&!o(t.prototype)?n(t)&&null===(t=t[u])&&(t=void 0):t=void 0),new(void 0===t?Array:t)(0===e?0:e)}},function(r,e,t){"use strict";var n=t(4),o=t(8),u=t(0),i=t(6),s=t(5),a=t(7).f,c=t(53),l=u.Symbol;if(o&&"function"==typeof l&&(!("description"in l.prototype)||void 0!==l().description)){var p={},y=function(){var r=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),e=this instanceof y?new l(r):void 0===r?l():l(r);return""===r&&(p[e]=!0),e};c(y,l);var f=y.prototype=l.prototype;f.constructor=y;var d=f.toString,m="Symbol(test)"==String(l("test")),g=/^Symbol\((.*)\)[^)]+$/;a(f,"description",{configurable:!0,get:function(){var r=s(this)?this.valueOf():this,e=d.call(r);if(i(p,r))return"";var t=m?e.slice(7,-1):e.replace(g,"$1");return""===t?void 0:t}}),n({global:!0,forced:!0},{Symbol:y})}},function(r,e,t){t(80)("iterator")},function(r,e,t){"use strict";var n=t(74).charAt,o=t(22),u=t(82),i=o.set,s=o.getterFor("String Iterator");u(String,"String",(function(r){i(this,{type:"String Iterator",string:String(r),index:0})}),(function(){var r,e=s(this),t=e.string,o=e.index;return o>=t.length?{value:void 0,done:!0}:(r=n(t,o),e.index+=r.length,{value:r,done:!1})}))},function(r,e,t){"use strict";var n=t(83).IteratorPrototype,o=t(49),u=t(21),i=t(30),s=t(25),a=function(){return this};r.exports=function(r,e,t){var c=e+" Iterator";return r.prototype=o(n,{next:u(1,t)}),i(r,c,!1,!0),s[c]=a,r}},function(r,e,t){var n=t(2);r.exports=!n((function(){function r(){}return r.prototype.constructor=null,Object.getPrototypeOf(new r)!==r.prototype}))},function(r,e,t){var n=t(3),o=t(126);r.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var r,e=!1,t={};try{(r=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(t,[]),e=t instanceof Array}catch(r){}return function(t,u){return n(t),o(u),e?r.call(t,u):t.__proto__=u,t}}():void 0)},function(r,e,t){var n=t(5);r.exports=function(r){if(!n(r)&&null!==r)throw TypeError("Can't set "+String(r)+" as a prototype");return r}},function(r,e,t){var n=t(1),o=t(49),u=t(7),i=n("unscopables"),s=Array.prototype;null==s[i]&&u.f(s,i,{configurable:!0,value:o(null)}),r.exports=function(r){s[i][r]=!0}},function(r,e,t){var n=t(0),o=t(129),u=t(85),i=t(9),s=t(1),a=s("iterator"),c=s("toStringTag"),l=u.values;for(var p in o){var y=n[p],f=y&&y.prototype;if(f){if(f[a]!==l)try{i(f,a,l)}catch(r){f[a]=l}if(f[c]||i(f,c,p),o[p])for(var d in u)if(f[d]!==u[d])try{i(f,d,u[d])}catch(r){f[d]=u[d]}}}},function(r,e){r.exports={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}},function(r,e,t){"use strict";var n=t(4),o=t(5),u=t(48),i=t(56),s=t(16),a=t(12),c=t(86),l=t(1),p=t(87)("slice"),y=l("species"),f=[].slice,d=Math.max;n({target:"Array",proto:!0,forced:!p},{slice:function(r,e){var t,n,l,p=a(this),m=s(p.length),g=i(r,m),b=i(void 0===e?m:e,m);if(u(p)&&("function"!=typeof(t=p.constructor)||t!==Array&&!u(t.prototype)?o(t)&&null===(t=t[y])&&(t=void 0):t=void 0,t===Array||void 0===t))return f.call(p,g,b);for(n=new(void 0===t?Array:t)(d(b-g,0)),l=0;g<b;g++,l++)g in p&&c(n,l,p[g]);return n.length=l,n}})},function(r,e,t){var n=t(4),o=t(132);n({target:"Array",stat:!0,forced:!t(64)((function(r){Array.from(r)}))},{from:o})},function(r,e,t){"use strict";var n=t(32),o=t(17),u=t(133),i=t(60),s=t(16),a=t(86),c=t(61);r.exports=function(r){var e,t,l,p,y,f,d=o(r),m="function"==typeof this?this:Array,g=arguments.length,b=g>1?arguments[1]:void 0,h=void 0!==b,E=c(d),v=0;if(h&&(b=n(b,g>2?arguments[2]:void 0,2)),null==E||m==Array&&i(E))for(t=new m(e=s(d.length));e>v;v++)f=h?b(d[v],v):d[v],a(t,v,f);else for(y=(p=E.call(d)).next,t=new m;!(l=y.call(p)).done;v++)f=h?u(p,b,[l.value,v],!0):l.value,a(t,v,f);return t.length=v,t}},function(r,e,t){var n=t(3),o=t(63);r.exports=function(r,e,t,u){try{return u?e(n(t)[0],t[1]):e(t)}catch(e){throw o(r),e}}},function(r,e,t){"use strict";var n=t(89),o=t(50),u=Object.prototype.hasOwnProperty,i={brackets:function(r){return r+"[]"},comma:"comma",indices:function(r,e){return r+"["+e+"]"},repeat:function(r){return r}},s=Array.isArray,a=Array.prototype.push,c=function(r,e){a.apply(r,s(e)?e:[e])},l=Date.prototype.toISOString,p=o.default,y={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:n.encode,encodeValuesOnly:!1,format:p,formatter:o.formatters[p],indices:!1,serializeDate:function(r){return l.call(r)},skipNulls:!1,strictNullHandling:!1},f=function r(e,t,o,u,i,a,l,p,f,d,m,g,b,h){var E,v=e;if("function"==typeof l?v=l(t,v):v instanceof Date?v=d(v):"comma"===o&&s(v)&&(v=n.maybeMap(v,(function(r){return r instanceof Date?d(r):r}))),null===v){if(u)return a&&!b?a(t,y.encoder,h,"key",m):t;v=""}if("string"==typeof(E=v)||"number"==typeof E||"boolean"==typeof E||"symbol"==typeof E||"bigint"==typeof E||n.isBuffer(v))return a?[g(b?t:a(t,y.encoder,h,"key",m))+"="+g(a(v,y.encoder,h,"value",m))]:[g(t)+"="+g(String(v))];var k,x=[];if(void 0===v)return x;if("comma"===o&&s(v))k=[{value:v.length>0?v.join(",")||null:void 0}];else if(s(l))k=l;else{var _=Object.keys(v);k=p?_.sort(p):_}for(var w=0;w<k.length;++w){var S=k[w],P="object"==typeof S&&void 0!==S.value?S.value:v[S];if(!i||null!==P){var O=s(v)?"function"==typeof o?o(t,S):t:t+(f?"."+S:"["+S+"]");c(x,r(P,O,o,u,i,a,l,p,f,d,m,g,b,h))}}return x};r.exports=function(r,e){var t,n=r,a=function(r){if(!r)return y;if(null!==r.encoder&&void 0!==r.encoder&&"function"!=typeof r.encoder)throw new TypeError("Encoder has to be a function.");var e=r.charset||y.charset;if(void 0!==r.charset&&"utf-8"!==r.charset&&"iso-8859-1"!==r.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=o.default;if(void 0!==r.format){if(!u.call(o.formatters,r.format))throw new TypeError("Unknown format option provided.");t=r.format}var n=o.formatters[t],i=y.filter;return("function"==typeof r.filter||s(r.filter))&&(i=r.filter),{addQueryPrefix:"boolean"==typeof r.addQueryPrefix?r.addQueryPrefix:y.addQueryPrefix,allowDots:void 0===r.allowDots?y.allowDots:!!r.allowDots,charset:e,charsetSentinel:"boolean"==typeof r.charsetSentinel?r.charsetSentinel:y.charsetSentinel,delimiter:void 0===r.delimiter?y.delimiter:r.delimiter,encode:"boolean"==typeof r.encode?r.encode:y.encode,encoder:"function"==typeof r.encoder?r.encoder:y.encoder,encodeValuesOnly:"boolean"==typeof r.encodeValuesOnly?r.encodeValuesOnly:y.encodeValuesOnly,filter:i,format:t,formatter:n,serializeDate:"function"==typeof r.serializeDate?r.serializeDate:y.serializeDate,skipNulls:"boolean"==typeof r.skipNulls?r.skipNulls:y.skipNulls,sort:"function"==typeof r.sort?r.sort:null,strictNullHandling:"boolean"==typeof r.strictNullHandling?r.strictNullHandling:y.strictNullHandling}}(e);"function"==typeof a.filter?n=(0,a.filter)("",n):s(a.filter)&&(t=a.filter);var l,p=[];if("object"!=typeof n||null===n)return"";l=e&&e.arrayFormat in i?e.arrayFormat:e&&"indices"in e?e.indices?"indices":"repeat":"indices";var d=i[l];t||(t=Object.keys(n)),a.sort&&t.sort(a.sort);for(var m=0;m<t.length;++m){var g=t[m];a.skipNulls&&null===n[g]||c(p,f(n[g],g,d,a.strictNullHandling,a.skipNulls,a.encode?a.encoder:null,a.filter,a.sort,a.allowDots,a.serializeDate,a.format,a.formatter,a.encodeValuesOnly,a.charset))}var b=p.join(a.delimiter),h=!0===a.addQueryPrefix?"?":"";return a.charsetSentinel&&("iso-8859-1"===a.charset?h+="utf8=%26%2310003%3B&":h+="utf8=%E2%9C%93&"),b.length>0?h+b:""}},function(r,e,t){"use strict";var n=t(89),o=Object.prototype.hasOwnProperty,u=Array.isArray,i={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:n.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},s=function(r){return r.replace(/&#(\d+);/g,(function(r,e){return String.fromCharCode(parseInt(e,10))}))},a=function(r,e){return r&&"string"==typeof r&&e.comma&&r.indexOf(",")>-1?r.split(","):r},c=function(r,e,t,n){if(r){var u=t.allowDots?r.replace(/\.([^.[]+)/g,"[$1]"):r,i=/(\[[^[\]]*])/g,s=t.depth>0&&/(\[[^[\]]*])/.exec(u),c=s?u.slice(0,s.index):u,l=[];if(c){if(!t.plainObjects&&o.call(Object.prototype,c)&&!t.allowPrototypes)return;l.push(c)}for(var p=0;t.depth>0&&null!==(s=i.exec(u))&&p<t.depth;){if(p+=1,!t.plainObjects&&o.call(Object.prototype,s[1].slice(1,-1))&&!t.allowPrototypes)return;l.push(s[1])}return s&&l.push("["+u.slice(s.index)+"]"),function(r,e,t,n){for(var o=n?e:a(e,t),u=r.length-1;u>=0;--u){var i,s=r[u];if("[]"===s&&t.parseArrays)i=[].concat(o);else{i=t.plainObjects?Object.create(null):{};var c="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,l=parseInt(c,10);t.parseArrays||""!==c?!isNaN(l)&&s!==c&&String(l)===c&&l>=0&&t.parseArrays&&l<=t.arrayLimit?(i=[])[l]=o:i[c]=o:i={0:o}}o=i}return o}(l,e,t,n)}};r.exports=function(r,e){var t=function(r){if(!r)return i;if(null!==r.decoder&&void 0!==r.decoder&&"function"!=typeof r.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==r.charset&&"utf-8"!==r.charset&&"iso-8859-1"!==r.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var e=void 0===r.charset?i.charset:r.charset;return{allowDots:void 0===r.allowDots?i.allowDots:!!r.allowDots,allowPrototypes:"boolean"==typeof r.allowPrototypes?r.allowPrototypes:i.allowPrototypes,arrayLimit:"number"==typeof r.arrayLimit?r.arrayLimit:i.arrayLimit,charset:e,charsetSentinel:"boolean"==typeof r.charsetSentinel?r.charsetSentinel:i.charsetSentinel,comma:"boolean"==typeof r.comma?r.comma:i.comma,decoder:"function"==typeof r.decoder?r.decoder:i.decoder,delimiter:"string"==typeof r.delimiter||n.isRegExp(r.delimiter)?r.delimiter:i.delimiter,depth:"number"==typeof r.depth||!1===r.depth?+r.depth:i.depth,ignoreQueryPrefix:!0===r.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof r.interpretNumericEntities?r.interpretNumericEntities:i.interpretNumericEntities,parameterLimit:"number"==typeof r.parameterLimit?r.parameterLimit:i.parameterLimit,parseArrays:!1!==r.parseArrays,plainObjects:"boolean"==typeof r.plainObjects?r.plainObjects:i.plainObjects,strictNullHandling:"boolean"==typeof r.strictNullHandling?r.strictNullHandling:i.strictNullHandling}}(e);if(""===r||null==r)return t.plainObjects?Object.create(null):{};for(var l="string"==typeof r?function(r,e){var t,c={},l=e.ignoreQueryPrefix?r.replace(/^\?/,""):r,p=e.parameterLimit===1/0?void 0:e.parameterLimit,y=l.split(e.delimiter,p),f=-1,d=e.charset;if(e.charsetSentinel)for(t=0;t<y.length;++t)0===y[t].indexOf("utf8=")&&("utf8=%E2%9C%93"===y[t]?d="utf-8":"utf8=%26%2310003%3B"===y[t]&&(d="iso-8859-1"),f=t,t=y.length);for(t=0;t<y.length;++t)if(t!==f){var m,g,b=y[t],h=b.indexOf("]="),E=-1===h?b.indexOf("="):h+1;-1===E?(m=e.decoder(b,i.decoder,d,"key"),g=e.strictNullHandling?null:""):(m=e.decoder(b.slice(0,E),i.decoder,d,"key"),g=n.maybeMap(a(b.slice(E+1),e),(function(r){return e.decoder(r,i.decoder,d,"value")}))),g&&e.interpretNumericEntities&&"iso-8859-1"===d&&(g=s(g)),b.indexOf("[]=")>-1&&(g=u(g)?[g]:g),o.call(c,m)?c[m]=n.combine(c[m],g):c[m]=g}return c}(r,t):r,p=t.plainObjects?Object.create(null):{},y=Object.keys(l),f=0;f<y.length;++f){var d=y[f],m=c(d,l[d],t,"string"==typeof r);p=n.merge(p,m,t)}return n.compact(p)}},function(r,e,t){"use strict";var n=t(4),o=t(24),u=t(17),i=t(2),s=t(77),a=[],c=a.sort,l=i((function(){a.sort(void 0)})),p=i((function(){a.sort(null)})),y=s("sort");n({target:"Array",proto:!0,forced:l||!p||!y},{sort:function(r){return void 0===r?c.call(u(this)):c.call(u(this),o(r))}})},function(r,e,t){"use strict";var n=t(4),o=t(81).map;n({target:"Array",proto:!0,forced:!t(87)("map")},{map:function(r){return o(this,r,arguments.length>1?arguments[1]:void 0)}})},function(r,e,t){"use strict";var n=t(13),o=t(3),u=t(2),i=t(72),s=RegExp.prototype,a=s.toString,c=u((function(){return"/a/b"!=a.call({source:"a",flags:"b"})})),l="toString"!=a.name;(c||l)&&n(RegExp.prototype,"toString",(function(){var r=o(this),e=String(r.source),t=r.flags;return"/"+e+"/"+String(void 0===t&&r instanceof RegExp&&!("flags"in s)?i.call(r):t)}),{unsafe:!0})},function(r,e){var t,n;t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n={rotl:function(r,e){return r<<e|r>>>32-e},rotr:function(r,e){return r<<32-e|r>>>e},endian:function(r){if(r.constructor==Number)return 16711935&n.rotl(r,8)|4278255360&n.rotl(r,24);for(var e=0;e<r.length;e++)r[e]=n.endian(r[e]);return r},randomBytes:function(r){for(var e=[];r>0;r--)e.push(Math.floor(256*Math.random()));return e},bytesToWords:function(r){for(var e=[],t=0,n=0;t<r.length;t++,n+=8)e[n>>>5]|=r[t]<<24-n%32;return e},wordsToBytes:function(r){for(var e=[],t=0;t<32*r.length;t+=8)e.push(r[t>>>5]>>>24-t%32&255);return e},bytesToHex:function(r){for(var e=[],t=0;t<r.length;t++)e.push((r[t]>>>4).toString(16)),e.push((15&r[t]).toString(16));return e.join("")},hexToBytes:function(r){for(var e=[],t=0;t<r.length;t+=2)e.push(parseInt(r.substr(t,2),16));return e},bytesToBase64:function(r){for(var e=[],n=0;n<r.length;n+=3)for(var o=r[n]<<16|r[n+1]<<8|r[n+2],u=0;u<4;u++)8*n+6*u<=8*r.length?e.push(t.charAt(o>>>6*(3-u)&63)):e.push("=");return e.join("")},base64ToBytes:function(r){r=r.replace(/[^A-Z0-9+\/]/gi,"");for(var e=[],n=0,o=0;n<r.length;o=++n%4)0!=o&&e.push((t.indexOf(r.charAt(n-1))&Math.pow(2,-2*o+8)-1)<<2*o|t.indexOf(r.charAt(n))>>>6-2*o);return e}},r.exports=n},function(r,e){function t(r){return!!r.constructor&&"function"==typeof r.constructor.isBuffer&&r.constructor.isBuffer(r)}
  /*!
   * Determine if an object is a Buffer
   *
   * @author   Feross Aboukhadijeh <https://feross.org>
   * @license  MIT
   */
  r.exports=function(r){return null!=r&&(t(r)||function(r){return"function"==typeof r.readFloatLE&&"function"==typeof r.slice&&t(r.slice(0,0))}(r)||!!r._isBuffer)}},function(r,e,t){"use strict";t.r(e),t.d(e,"WxPay",(function(){return R})),t.d(e,"AliPay",(function(){return z})),t.d(e,"Finance",(function(){return nr})),t.d(e,"Merge",(function(){return ar})),t.d(e,"Order",(function(){return fr})),t.d(e,"PaySignUtil",(function(){return m})),t.d(e,"WxLogin",(function(){return vr})),t.d(e,"PayBlack",(function(){return Pr}));t(14),t(11),t(10),t(108),t(111),t(71),t(114),t(76),t(78);function n(r){return null==r||""===r||!(r instanceof Function)&&(r instanceof Array?0==r.length:!(r instanceof Date)&&(r instanceof Object&&(Object.keys?0==Object.keys(r).length:"{}"==JSON.stringify(r))))}var o={doApiResult:function(r){return n(r)?(console.error("yungouos pay sdk","请求API无响应"),null):0!=r.code?(console.error("yungouos pay sdk",r),null):r},formatMoney:function(r,e){e=e>0&&e<=20?e:2;for(var t=(r=parseFloat((r+"").replace(/[^\d\.-]/g,"")).toFixed(e)+"").split(".")[0].split("").reverse(),n=r.split(".")[1],o="",u=0;u<t.length;u++)o+=t[u]+((u+1)%3==0&&u+1!=t.length?",":"");return o.split("").reverse().join("")+"."+n},isEmpty:n},u={codePay:"https://api.pay.yungouos.com/api/pay/wxpay/codePay",nativePay:"https://api.pay.yungouos.com/api/pay/wxpay/nativePay",jsapiPay:"https://api.pay.yungouos.com/api/pay/wxpay/jsapi",minAppPay:"https://api.pay.yungouos.com/api/pay/wxpay/minAppPay",cashierPay:"https://api.pay.yungouos.com/api/pay/wxpay/cashierPay",facePay:"https://api.pay.yungouos.com/api/pay/wxpay/facePay",wapPay:"https://api.pay.yungouos.com/api/pay/wxpay/wapPay",appPay:"https://api.pay.yungouos.com/api/pay/wxpay/appPay",refundOrder:"https://api.pay.yungouos.com/api/pay/wxpay/refundOrder",getRefundResult:"https://api.pay.yungouos.com/api/pay/wxpay/getRefundResult",closeOrder:"https://api.pay.yungouos.com/api/pay/wxpay/closeOrder",reverseOrder:"https://api.pay.yungouos.com/api/pay/wxpay/reverseOrder",getWxBillInfo:"https://api.pay.yungouos.com/api/pay/wxpay/getWxBillInfo",downloadBill:"https://api.pay.yungouos.com/api/pay/wxpay/downloadBill",getCodePayResult:"https://api.pay.yungouos.com/api/pay/wxpay/getCodePayResult"},i=(t(116),t(120),t(121),t(122),t(85),t(128),t(130),t(88),t(131),t(91)),s=t.n(i);function a(r,e){return function(r){if(Array.isArray(r))return r}(r)||function(r,e){var t=r&&("undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"]);if(null==t)return;var n,o,u=[],i=!0,s=!1;try{for(t=t.call(r);!(i=(n=t.next()).done)&&(u.push(n.value),!e||u.length!==e);i=!0);}catch(r){s=!0,o=r}finally{try{i||null==t.return||t.return()}finally{if(s)throw o}}return u}(r,e)||function(r,e){if(!r)return;if("string"==typeof r)return c(r,e);var t=Object.prototype.toString.call(r).slice(8,-1);"Object"===t&&r.constructor&&(t=r.constructor.name);if("Map"===t||"Set"===t)return Array.from(r);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return c(r,e)}(r,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(r,e){(null==e||e>r.length)&&(e=r.length);for(var t=0,n=new Array(e);t<e;t++)n[t]=r[t];return n}function l(r,e,t){return new Promise((function(n,u){var i=null;"GET"==r&&(i=uni.request({url:e,method:"GET",data:t,header:{"content-type":"application/x-www-form-urlencoded"}})),"POST"==r&&(i=uni.request({url:e,method:"POST",data:t,header:{"content-type":"application/x-www-form-urlencoded"}})),i.then((function(r){var e=a(r,2),t=e[0],i=e[1];o.isEmpty(t)||u("yungouos sdk error",t),200!=i.statusCode&&u("yungouos sdk error",i),n(i.data)})).catch((function(r){u("yungouos sdk error",r)}))}))}var p={get:function(r,e){return l("GET",r,e)},post:function(r,e){return o.isEmpty(e)||(e=s.a.stringify(e)),l("POST",r,e)}},y=(t(136),t(137),t(138),t(92)),f=t.n(y);function d(r,e){var t=Object.keys(r);t.sort();var n=[];t.map((function(e){n.push(e+"="+r[e])})),n.push("key="+e);var o=n.join("&");return f()(o).toString().toUpperCase()}var m={paySign:d,checkNotifySign:function(r,e,t){return o.isEmpty(r)?(console.error("yungouos sdk error","params参数不能为空"),!1):o.isEmpty(e)?(console.error("yungouos sdk error","sign不能为空"),!1):o.isEmpty(t)?(console.error("yungouos sdk error","key不能空"),!1):e==d(r,t)||(console.error("yungouos sdk error","回调签名验证失败"),!1)}};function g(r,e,t,n,o,u,i){try{var s=r[u](i),a=s.value}catch(r){return void t(r)}s.done?e(a):Promise.resolve(a).then(n,o)}function b(r){return function(){var e=this,t=arguments;return new Promise((function(n,o){var u=r.apply(e,t);function i(r){g(u,n,o,i,s,"next",r)}function s(r){g(u,n,o,i,s,"throw",r)}i(void 0)}))}}function h(){return(h=b(regeneratorRuntime.mark((function r(e,t,n,i,s,a,c,l,y,f,d,g,b){var h,E,v,k,x;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!o.isEmpty(e)){r.next=3;break}return console.error("yungouos sdk error","商户订单号不能为空"),r.abrupt("return",null);case 3:if(!o.isEmpty(t)){r.next=6;break}return console.error("yungouos sdk error","支付金额不能为空"),r.abrupt("return",null);case 6:if(!o.isEmpty(n)){r.next=9;break}return console.error("yungouos sdk error","商户号不能为空"),r.abrupt("return",null);case 9:if(!o.isEmpty(i)){r.next=12;break}return console.error("yungouos sdk error","商品名称不能为空"),r.abrupt("return",null);case 12:if(!o.isEmpty(s)){r.next=15;break}return console.error("yungouos sdk error","支付授权码不能为空"),r.abrupt("return",null);case 15:if(!o.isEmpty(b)){r.next=18;break}return console.error("yungouos sdk error","支付密钥不能为空"),r.abrupt("return",null);case 18:if(h={out_trade_no:e,total_fee:t,mch_id:n,body:i,auth_code:s},E=m.paySign(h,b),h.sign=E,o.isEmpty(a)||(h.attach=a),o.isEmpty(c)||(h.receipt=c),o.isEmpty(l)||(h.notify_url=l),o.isEmpty(y)||(h.auto=y),o.isEmpty(f)||(h.auto_node=f),o.isEmpty(d)||(h.config_no=d),o.isEmpty(g)){r.next=32;break}if(o.isObject(g)){r.next=31;break}return console.error("yungouos sdk error","biz_params不是合法的json"),r.abrupt("return",null);case 31:h.biz_params=JSON.stringify(g);case 32:return r.next=34,p.post(u.codePay,h);case 34:if(v=r.sent,k=o.doApiResult(v),!o.isEmpty(k)){r.next=38;break}return r.abrupt("return",null);case 38:if(x=k.data,!o.isEmpty(x)){r.next=42;break}return console.error("yungouos sdk error","API无返回结果"),r.abrupt("return",null);case 42:return r.abrupt("return",x);case 43:case"end":return r.stop()}}),r)})))).apply(this,arguments)}function E(){return(E=b(regeneratorRuntime.mark((function r(e,t,n,i,s,a,c,l,y,f,d,g){var b,h,E,v,k;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!o.isEmpty(e)){r.next=3;break}return console.error("yungouos sdk error","商户订单号不能为空"),r.abrupt("return",null);case 3:if(!o.isEmpty(t)){r.next=6;break}return console.error("yungouos sdk error","支付金额不能为空"),r.abrupt("return",null);case 6:if(!o.isEmpty(n)){r.next=9;break}return console.error("yungouos sdk error","商户号不能为空"),r.abrupt("return",null);case 9:if(!o.isEmpty(i)){r.next=12;break}return console.error("yungouos sdk error","商品名称不能为空"),r.abrupt("return",null);case 12:if(!o.isEmpty(g)){r.next=15;break}return console.error("yungouos sdk error","支付密钥不能为空"),r.abrupt("return",null);case 15:if(b={out_trade_no:e,total_fee:t,mch_id:n,body:i},h=m.paySign(b,g),b.sign=h,o.isEmpty(s)||(b.type=s),o.isEmpty(a)||(b.attach=a),o.isEmpty(c)||(b.notify_url=c),o.isEmpty(l)||(b.auto=l),o.isEmpty(y)||(b.auto_node=y),o.isEmpty(f)||(b.config_no=f),o.isEmpty(d)){r.next=29;break}if(o.isObject(d)){r.next=28;break}return console.error("yungouos sdk error","biz_params不是合法的json"),r.abrupt("return",null);case 28:b.biz_params=JSON.stringify(d);case 29:return r.next=31,p.post(u.nativePay,b);case 31:if(E=r.sent,v=o.doApiResult(E),!o.isEmpty(v)){r.next=35;break}return r.abrupt("return",null);case 35:if(k=v.data,!o.isEmpty(k)){r.next=39;break}return console.error("yungouos sdk error","API无返回结果"),r.abrupt("return",null);case 39:return r.abrupt("return",k);case 40:case"end":return r.stop()}}),r)})))).apply(this,arguments)}function v(){return(v=b(regeneratorRuntime.mark((function r(e,t,n,i,s,a,c,l,y,f,d,g,b){var h,E,v,k,x;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!o.isEmpty(e)){r.next=3;break}return console.error("yungouos sdk error","商户订单号不能为空"),r.abrupt("return",null);case 3:if(!o.isEmpty(t)){r.next=6;break}return console.error("yungouos sdk error","支付金额不能为空"),r.abrupt("return",null);case 6:if(!o.isEmpty(n)){r.next=9;break}return console.error("yungouos sdk error","商户号不能为空"),r.abrupt("return",null);case 9:if(!o.isEmpty(i)){r.next=12;break}return console.error("yungouos sdk error","商品名称不能为空"),r.abrupt("return",null);case 12:if(!o.isEmpty(s)){r.next=15;break}return console.error("yungouos sdk error","openId不能为空"),r.abrupt("return",null);case 15:if(!o.isEmpty(b)){r.next=18;break}return console.error("yungouos sdk error","支付密钥不能为空"),r.abrupt("return",null);case 18:if(h={out_trade_no:e,total_fee:t,mch_id:n,body:i,openId:s},E=m.paySign(h,b),h.sign=E,o.isEmpty(a)||(h.attach=a),o.isEmpty(c)||(h.notify_url=c),o.isEmpty(l)||(h.return_url=l),o.isEmpty(y)||(h.auto=y),o.isEmpty(f)||(h.auto_node=f),o.isEmpty(d)||(h.config_no=d),o.isEmpty(g)){r.next=32;break}if(o.isObject(g)){r.next=31;break}return console.error("yungouos sdk error","biz_params不是合法的json"),r.abrupt("return",null);case 31:h.biz_params=JSON.stringify(g);case 32:return r.next=34,p.post(u.jsapiPay,h);case 34:if(v=r.sent,k=o.doApiResult(v),!o.isEmpty(k)){r.next=38;break}return r.abrupt("return",null);case 38:if(x=k.data,!o.isEmpty(x)){r.next=42;break}return console.error("yungouos sdk error","API无返回结果"),r.abrupt("return",null);case 42:return r.abrupt("return",x);case 43:case"end":return r.stop()}}),r)})))).apply(this,arguments)}function k(){return(k=b(regeneratorRuntime.mark((function r(e,t,n,i,s,a,c,l,y,f,d,g){var b,h,E,v,k;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!o.isEmpty(e)){r.next=3;break}return console.error("yungouos sdk error","商户订单号不能为空"),r.abrupt("return",null);case 3:if(!o.isEmpty(t)){r.next=6;break}return console.error("yungouos sdk error","支付金额不能为空"),r.abrupt("return",null);case 6:if(!o.isEmpty(n)){r.next=9;break}return console.error("yungouos sdk error","商户号不能为空"),r.abrupt("return",null);case 9:if(!o.isEmpty(i)){r.next=12;break}return console.error("yungouos sdk error","商品名称不能为空"),r.abrupt("return",null);case 12:if(!o.isEmpty(g)){r.next=15;break}return console.error("yungouos sdk error","支付密钥不能为空"),r.abrupt("return",null);case 15:if(b={out_trade_no:e,total_fee:t,mch_id:n,body:i},h=m.paySign(b,g),b.sign=h,o.isEmpty(s)||(b.attach=s),o.isEmpty(a)||(b.notify_url=a),o.isEmpty(c)||(b.return_url=c),o.isEmpty(l)||(b.auto=l),o.isEmpty(y)||(b.auto_node=y),o.isEmpty(f)||(b.config_no=f),o.isEmpty(d)){r.next=29;break}if(o.isObject(d)){r.next=28;break}return console.error("yungouos sdk error","biz_params不是合法的json"),r.abrupt("return",null);case 28:b.biz_params=JSON.stringify(d);case 29:return r.next=31,p.post(u.cashierPay,b);case 31:if(E=r.sent,v=o.doApiResult(E),!o.isEmpty(v)){r.next=35;break}return r.abrupt("return",null);case 35:if(k=v.data,!o.isEmpty(k)){r.next=39;break}return console.error("yungouos sdk error","API无返回结果"),r.abrupt("return",null);case 39:return r.abrupt("return",k);case 40:case"end":return r.stop()}}),r)})))).apply(this,arguments)}function x(){return(x=b(regeneratorRuntime.mark((function r(e,t,n,i,s,a,c,l,y,f,d,g){var b,h,E,v,k;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!o.isEmpty(e)){r.next=3;break}return console.error("yungouos sdk error","商户订单号不能为空"),r.abrupt("return",null);case 3:if(!o.isEmpty(t)){r.next=6;break}return console.error("yungouos sdk error","支付金额不能为空"),r.abrupt("return",null);case 6:if(!o.isEmpty(n)){r.next=9;break}return console.error("yungouos sdk error","商户号不能为空"),r.abrupt("return",null);case 9:if(!o.isEmpty(i)){r.next=12;break}return console.error("yungouos sdk error","商品名称不能为空"),r.abrupt("return",null);case 12:if(!o.isEmpty(s)){r.next=15;break}return console.error("yungouos sdk error","openId不能为空"),r.abrupt("return",null);case 15:if(!o.isEmpty(g)){r.next=18;break}return console.error("yungouos sdk error","支付密钥不能为空"),r.abrupt("return",null);case 18:if(b={out_trade_no:e,total_fee:t,mch_id:n,body:i},h=m.paySign(b,g),b.sign=h,b.openId=s,o.isEmpty(a)||(b.attach=a),o.isEmpty(c)||(b.notify_url=c),o.isEmpty(l)||(b.auto=l),o.isEmpty(y)||(b.auto_node=y),o.isEmpty(f)||(b.config_no=f),o.isEmpty(d)){r.next=32;break}if(o.isObject(d)){r.next=31;break}return console.error("yungouos sdk error","biz_params不是合法的json"),r.abrupt("return",null);case 31:b.biz_params=JSON.stringify(d);case 32:return r.next=34,p.post(u.minAppPay,b);case 34:if(E=r.sent,v=o.doApiResult(E),!o.isEmpty(v)){r.next=38;break}return r.abrupt("return",null);case 38:if(k=v.data,!o.isEmpty(k)){r.next=42;break}return console.error("yungouos sdk error","API无返回结果"),r.abrupt("return",null);case 42:return r.abrupt("return",k);case 43:case"end":return r.stop()}}),r)})))).apply(this,arguments)}function _(){return(_=b(regeneratorRuntime.mark((function r(e,t,n,i,s,a,c,l,y,f,d,g,b){var h,E,v,k,x;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!o.isEmpty(e)){r.next=3;break}return console.error("yungouos sdk error","商户订单号不能为空"),r.abrupt("return",null);case 3:if(!o.isEmpty(t)){r.next=6;break}return console.error("yungouos sdk error","支付金额不能为空"),r.abrupt("return",null);case 6:if(!o.isEmpty(n)){r.next=9;break}return console.error("yungouos sdk error","商户号不能为空"),r.abrupt("return",null);case 9:if(!o.isEmpty(i)){r.next=12;break}return console.error("yungouos sdk error","商品名称不能为空"),r.abrupt("return",null);case 12:if(!o.isEmpty(s)){r.next=15;break}return console.error("yungouos sdk error","openId不能为空"),r.abrupt("return",null);case 15:if(!o.isEmpty(a)){r.next=18;break}return console.error("yungouos sdk error","人脸凭证不能为空"),r.abrupt("return",null);case 18:if(!o.isEmpty(b)){r.next=21;break}return console.error("yungouos sdk error","支付密钥不能为空"),r.abrupt("return",null);case 21:if(h={out_trade_no:e,total_fee:t,mch_id:n,body:i,openId:s,face_code:a},E=m.paySign(h,b),h.sign=E,o.isEmpty(c)||(h.attach=c),o.isEmpty(l)||(h.notify_url=l),o.isEmpty(y)||(h.auto=y),o.isEmpty(f)||(h.auto_node=f),o.isEmpty(d)||(h.config_no=d),o.isEmpty(g)){r.next=34;break}if(o.isObject(g)){r.next=33;break}return console.error("yungouos sdk error","biz_params不是合法的json"),r.abrupt("return",null);case 33:h.biz_params=JSON.stringify(g);case 34:return r.next=36,p.post(u.facePay,h);case 36:if(v=r.sent,k=o.doApiResult(v),!o.isEmpty(k)){r.next=40;break}return r.abrupt("return",null);case 40:if(x=k.data,!o.isEmpty(x)){r.next=44;break}return console.error("yungouos sdk error","API无返回结果"),r.abrupt("return",null);case 44:return r.abrupt("return",x);case 45:case"end":return r.stop()}}),r)})))).apply(this,arguments)}function w(){return(w=b(regeneratorRuntime.mark((function r(e,t,n,i,s,a,c,l,y,f,d,g){var b,h,E,v,k;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!o.isEmpty(e)){r.next=3;break}return console.error("yungouos sdk error","商户订单号不能为空"),r.abrupt("return",null);case 3:if(!o.isEmpty(t)){r.next=6;break}return console.error("yungouos sdk error","支付金额不能为空"),r.abrupt("return",null);case 6:if(!o.isEmpty(n)){r.next=9;break}return console.error("yungouos sdk error","商户号不能为空"),r.abrupt("return",null);case 9:if(!o.isEmpty(i)){r.next=12;break}return console.error("yungouos sdk error","商品名称不能为空"),r.abrupt("return",null);case 12:if(!o.isEmpty(g)){r.next=15;break}return console.error("yungouos sdk error","支付密钥不能为空"),r.abrupt("return",null);case 15:if(b={out_trade_no:e,total_fee:t,mch_id:n,body:i},h=m.paySign(b,g),b.sign=h,o.isEmpty(s)||(b.attach=s),o.isEmpty(a)||(b.notify_url=a),o.isEmpty(c)||(b.return_url=c),o.isEmpty(l)||(b.auto=l),o.isEmpty(y)||(b.auto_node=y),o.isEmpty(f)||(b.config_no=f),o.isEmpty(d)){r.next=29;break}if(o.isObject(d)){r.next=28;break}return console.error("yungouos sdk error","biz_params不是合法的json"),r.abrupt("return",null);case 28:b.biz_params=JSON.stringify(d);case 29:return r.next=31,p.post(u.wapPay,b);case 31:if(E=r.sent,v=o.doApiResult(E),!o.isEmpty(v)){r.next=35;break}return r.abrupt("return",null);case 35:if(k=v.data,!o.isEmpty(k)){r.next=39;break}return console.error("yungouos sdk error","API无返回结果"),r.abrupt("return",null);case 39:return r.abrupt("return",k);case 40:case"end":return r.stop()}}),r)})))).apply(this,arguments)}function S(){return(S=b(regeneratorRuntime.mark((function r(e,t,n,i,s,a,c,l,y,f,d,g){var b,h,E,v,k;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!o.isEmpty(e)){r.next=3;break}return console.error("yungouos sdk error","APPID不能为空"),r.abrupt("return",null);case 3:if(!o.isEmpty(t)){r.next=6;break}return console.error("yungouos sdk error","商户订单号不能为空"),r.abrupt("return",null);case 6:if(!o.isEmpty(n)){r.next=9;break}return console.error("yungouos sdk error","支付金额不能为空"),r.abrupt("return",null);case 9:if(!o.isEmpty(i)){r.next=12;break}return console.error("yungouos sdk error","商户号不能为空"),r.abrupt("return",null);case 12:if(!o.isEmpty(s)){r.next=15;break}return console.error("yungouos sdk error","商品名称不能为空"),r.abrupt("return",null);case 15:if(!o.isEmpty(g)){r.next=18;break}return console.error("yungouos sdk error","支付密钥不能为空"),r.abrupt("return",null);case 18:if(b={app_id:e,out_trade_no:t,total_fee:n,mch_id:i,body:s},h=m.paySign(b,g),b.sign=h,o.isEmpty(a)||(b.attach=a),o.isEmpty(c)||(b.notify_url=c),o.isEmpty(l)||(b.auto=l),o.isEmpty(y)||(b.auto_node=y),o.isEmpty(f)||(b.config_no=f),o.isEmpty(d)){r.next=31;break}if(o.isObject(d)){r.next=30;break}return console.error("yungouos sdk error","biz_params不是合法的json"),r.abrupt("return",null);case 30:b.biz_params=JSON.stringify(d);case 31:return r.next=33,p.post(u.appPay,b);case 33:if(E=r.sent,v=o.doApiResult(E),!o.isEmpty(v)){r.next=37;break}return r.abrupt("return",null);case 37:if(k=v.data,!o.isEmpty(k)){r.next=41;break}return console.error("yungouos sdk error","API无返回结果"),r.abrupt("return",null);case 41:return r.abrupt("return",k);case 42:case"end":return r.stop()}}),r)})))).apply(this,arguments)}function P(){return(P=b(regeneratorRuntime.mark((function r(e,t,n,i,s,a){var c,l,y,f,d;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!o.isEmpty(e)){r.next=3;break}return console.error("yungouos sdk error","商户订单号不能为空"),r.abrupt("return",null);case 3:if(!o.isEmpty(t)){r.next=6;break}return console.error("yungouos sdk error","商户号不能为空"),r.abrupt("return",null);case 6:if(!o.isEmpty(n)){r.next=9;break}return console.error("yungouos sdk error","退款金额不能为空"),r.abrupt("return",null);case 9:if(!o.isEmpty(a)){r.next=12;break}return console.error("yungouos sdk error","支付密钥不能为空"),r.abrupt("return",null);case 12:return c={out_trade_no:e,mch_id:t,money:n},l=m.paySign(c,a),o.isEmpty(i)||(c.refund_desc=i),o.isEmpty(s)||(c.notify_url=s),c.sign=l,r.next=19,p.post(u.refundOrder,c);case 19:if(y=r.sent,f=o.doApiResult(y),!o.isEmpty(f)){r.next=23;break}return r.abrupt("return",null);case 23:if(d=f.data,!o.isEmpty(d)){r.next=27;break}return console.error("yungouos sdk error","API无返回结果"),r.abrupt("return",null);case 27:return r.abrupt("return",d);case 28:case"end":return r.stop()}}),r)})))).apply(this,arguments)}function O(){return(O=b(regeneratorRuntime.mark((function r(e,t,n){var i,s,a,c,l;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!o.isEmpty(e)){r.next=3;break}return console.error("yungouos sdk error","退款单号不能为空"),r.abrupt("return",null);case 3:if(!o.isEmpty(t)){r.next=6;break}return console.error("yungouos sdk error","商户号不能为空"),r.abrupt("return",null);case 6:if(!o.isEmpty(n)){r.next=9;break}return console.error("yungouos sdk error","支付密钥不能为空"),r.abrupt("return",null);case 9:return i={refund_no:e,mch_id:t},s=m.paySign(i,n),i.sign=s,r.next=14,p.post(u.getRefundResult,i);case 14:if(a=r.sent,c=o.doApiResult(a),!o.isEmpty(c)){r.next=18;break}return r.abrupt("return",null);case 18:if(l=c.data,!o.isEmpty(l)){r.next=22;break}return console.error("yungouos sdk error","API无返回结果"),r.abrupt("return",null);case 22:return r.abrupt("return",l);case 23:case"end":return r.stop()}}),r)})))).apply(this,arguments)}function A(){return(A=b(regeneratorRuntime.mark((function r(e,t,n,i,s){var a,c,l,y,f;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!o.isEmpty(e)){r.next=3;break}return console.error("yungouos sdk error","商户号不能为空"),r.abrupt("return",null);case 3:if(!o.isEmpty(t)){r.next=6;break}return console.error("yungouos sdk error","对账单日期不能为空"),r.abrupt("return",null);case 6:if(!o.isEmpty(s)){r.next=9;break}return console.error("yungouos sdk error","支付密钥不能为空"),r.abrupt("return",null);case 9:return a={mch_id:e,date:t},c=m.paySign(a,s),o.isEmpty(n)||(a.end_date=n),o.isEmpty(i)||(a.device_info=i),a.sign=c,r.next=16,p.post(u.downloadBill,a);case 16:if(l=r.sent,y=o.doApiResult(l),!o.isEmpty(y)){r.next=20;break}return r.abrupt("return",null);case 20:if(f=y.data,!o.isEmpty(f)){r.next=24;break}return console.error("yungouos sdk error","API无返回结果"),r.abrupt("return",null);case 24:return r.abrupt("return",f);case 25:case"end":return r.stop()}}),r)})))).apply(this,arguments)}var R={codePayAsync:function(r,e,t,n,o,u,i,s,a,c,l,p,y){return h.apply(this,arguments)},codePay:function(r,e,t,n,i,s,a,c,l,y,f,d,g){if(o.isEmpty(r))return console.error("yungouos sdk error","商户订单号不能为空"),null;if(o.isEmpty(e))return console.error("yungouos sdk error","支付金额不能为空"),null;if(o.isEmpty(t))return console.error("yungouos sdk error","商户号不能为空"),null;if(o.isEmpty(n))return console.error("yungouos sdk error","商品名称不能为空"),null;if(o.isEmpty(i))return console.error("yungouos sdk error","支付授权码不能为空"),null;if(o.isEmpty(g))return console.error("yungouos sdk error","支付密钥不能为空"),null;var b={out_trade_no:r,total_fee:e,mch_id:t,body:n,auth_code:i},h=m.paySign(b,g);if(b.sign=h,o.isEmpty(s)||(b.attach=s),o.isEmpty(a)||(b.receipt=a),o.isEmpty(c)||(b.notify_url=c),o.isEmpty(l)||(b.auto=l),o.isEmpty(y)||(b.auto_node=y),o.isEmpty(f)||(b.config_no=f),!o.isEmpty(d)){if(!o.isObject(d))return console.error("yungouos sdk error","biz_params不是合法的json"),null;b.biz_params=JSON.stringify(d)}return p.post(u.codePay,b)},nativePayAsync:function(r,e,t,n,o,u,i,s,a,c,l,p){return E.apply(this,arguments)},nativePay:function(r,e,t,n,i,s,a,c,l,y,f,d){if(o.isEmpty(r))return console.error("yungouos sdk error","商户订单号不能为空"),null;if(o.isEmpty(e))return console.error("yungouos sdk error","支付金额不能为空"),null;if(o.isEmpty(t))return console.error("yungouos sdk error","商户号不能为空"),null;if(o.isEmpty(n))return console.error("yungouos sdk error","商品名称不能为空"),null;if(o.isEmpty(d))return console.error("yungouos sdk error","支付密钥不能为空"),null;var g={out_trade_no:r,total_fee:e,mch_id:t,body:n},b=m.paySign(g,d);if(g.sign=b,o.isEmpty(i)||(g.type=i),o.isEmpty(s)||(g.attach=s),o.isEmpty(a)||(g.notify_url=a),o.isEmpty(c)||(g.auto=c),o.isEmpty(l)||(g.auto_node=l),o.isEmpty(y)||(g.config_no=y),!o.isEmpty(f)){if(!o.isObject(f))return console.error("yungouos sdk error","biz_params不是合法的json"),null;g.biz_params=JSON.stringify(f)}return p.post(u.nativePay,g)},jsapiPayAsync:function(r,e,t,n,o,u,i,s,a,c,l,p,y){return v.apply(this,arguments)},jsapiPay:function(r,e,t,n,i,s,a,c,l,y,f,d,g){if(o.isEmpty(r))return console.error("yungouos sdk error","商户订单号不能为空"),null;if(o.isEmpty(e))return console.error("yungouos sdk error","支付金额不能为空"),null;if(o.isEmpty(t))return console.error("yungouos sdk error","商户号不能为空"),null;if(o.isEmpty(n))return console.error("yungouos sdk error","商品名称不能为空"),null;if(o.isEmpty(i))return console.error("yungouos sdk error","openId不能为空"),null;if(o.isEmpty(g))return console.error("yungouos sdk error","支付密钥不能为空"),null;var b={out_trade_no:r,total_fee:e,mch_id:t,body:n,openId:i},h=m.paySign(b,g);if(b.sign=h,o.isEmpty(s)||(b.attach=s),o.isEmpty(a)||(b.notify_url=a),o.isEmpty(c)||(b.return_url=c),o.isEmpty(l)||(b.auto=l),o.isEmpty(y)||(b.auto_node=y),o.isEmpty(f)||(b.config_no=f),!o.isEmpty(d)){if(!o.isObject(d))return console.error("yungouos sdk error","biz_params不是合法的json"),null;b.biz_params=JSON.stringify(d)}return p.post(u.jsapiPay,b)},cashierPayAsync:function(r,e,t,n,o,u,i,s,a,c,l,p){return k.apply(this,arguments)},cashierPay:function(r,e,t,n,i,s,a,c,l,y,f,d){if(o.isEmpty(r))return console.error("yungouos sdk error","商户订单号不能为空"),null;if(o.isEmpty(e))return console.error("yungouos sdk error","支付金额不能为空"),null;if(o.isEmpty(t))return console.error("yungouos sdk error","商户号不能为空"),null;if(o.isEmpty(n))return console.error("yungouos sdk error","商品名称不能为空"),null;if(o.isEmpty(d))return console.error("yungouos sdk error","支付密钥不能为空"),null;var g={out_trade_no:r,total_fee:e,mch_id:t,body:n},b=m.paySign(g,d);if(g.sign=b,o.isEmpty(i)||(g.attach=i),o.isEmpty(s)||(g.notify_url=s),o.isEmpty(a)||(g.return_url=a),o.isEmpty(c)||(g.auto=c),o.isEmpty(l)||(g.auto_node=l),o.isEmpty(y)||(g.config_no=y),!o.isEmpty(f)){if(!o.isObject(f))return console.error("yungouos sdk error","biz_params不是合法的json"),null;g.biz_params=JSON.stringify(f)}return p.post(u.cashierPay,g)},minAppPay:function(r,e,t,n,u,i,s,a,c,l,p,y){if(o.isEmpty(r))return console.error("yungouos sdk error","商户订单号不能为空"),null;if(o.isEmpty(e))return console.error("yungouos sdk error","支付金额不能为空"),null;if(o.isEmpty(t))return console.error("yungouos sdk error","商户号不能为空"),null;if(o.isEmpty(n))return console.error("yungouos sdk error","商品名称不能为空"),null;if(o.isEmpty(y))return console.error("yungouos sdk error","支付密钥不能为空"),null;var f={out_trade_no:r,total_fee:e,mch_id:t,body:n},d=m.paySign(f,y);if(f.sign=d,o.isEmpty(u)||(f.attach=u),o.isEmpty(s)||(f.notify_url=s),o.isEmpty(i)||(f.title=i),o.isEmpty(a)||(f.auto=a),o.isEmpty(c)||(f.auto_node=c),o.isEmpty(l)||(f.config_no=l),!o.isEmpty(p)){if(!o.isObject(p))return console.error("yungouos sdk error","biz_params不是合法的json"),null;f.biz_params=JSON.stringify(p)}uni.navigateToMiniProgram({appId:"wxd9634afb01b983c0",path:"/pages/pay/pay",extraData:f,success:function(r){console.log("小程序拉起成功")}})},minAppPayParams:function(r,e,t,n,u,i,s,a,c,l,p,y){if(o.isEmpty(r))return console.error("yungouos sdk error","商户订单号不能为空"),null;if(o.isEmpty(e))return console.error("yungouos sdk error","支付金额不能为空"),null;if(o.isEmpty(t))return console.error("yungouos sdk error","商户号不能为空"),null;if(o.isEmpty(n))return console.error("yungouos sdk error","商品名称不能为空"),null;if(o.isEmpty(y))return console.error("yungouos sdk error","支付密钥不能为空"),null;var f={out_trade_no:r,total_fee:e,mch_id:t,body:n},d=m.paySign(f,y);if(f.sign=d,o.isEmpty(u)||(f.attach=u),o.isEmpty(s)||(f.notify_url=s),o.isEmpty(i)||(f.title=i),o.isEmpty(a)||(f.auto=a),o.isEmpty(c)||(f.auto_node=c),o.isEmpty(l)||(f.config_no=l),!o.isEmpty(p)){if(!o.isObject(p))return console.error("yungouos sdk error","biz_params不是合法的json"),null;f.biz_params=JSON.stringify(p)}return f},minAppPayBusiness:function(r,e,t,n,i,s,a,c,l,y,f,d){if(o.isEmpty(r))return console.error("yungouos sdk error","商户订单号不能为空"),null;if(o.isEmpty(e))return console.error("yungouos sdk error","支付金额不能为空"),null;if(o.isEmpty(t))return console.error("yungouos sdk error","商户号不能为空"),null;if(o.isEmpty(n))return console.error("yungouos sdk error","商品名称不能为空"),null;if(o.isEmpty(i))return console.error("yungouos sdk error","openId不能为空"),null;if(o.isEmpty(d))return console.error("yungouos sdk error","支付密钥不能为空"),null;var g={out_trade_no:r,total_fee:e,mch_id:t,body:n},b=m.paySign(g,d);if(g.sign=b,g.openId=i,o.isEmpty(s)||(g.attach=s),o.isEmpty(a)||(g.notify_url=a),o.isEmpty(c)||(g.auto=c),o.isEmpty(l)||(g.auto_node=l),o.isEmpty(y)||(g.config_no=y),!o.isEmpty(f)){if(!o.isObject(f))return console.error("yungouos sdk error","biz_params不是合法的json"),null;g.biz_params=JSON.stringify(f)}return p.post(u.minAppPay,g)},minAppPayBusinessAsync:function(r,e,t,n,o,u,i,s,a,c,l,p){return x.apply(this,arguments)},facePayAsync:function(r,e,t,n,o,u,i,s,a,c,l,p,y){return _.apply(this,arguments)},facePay:function(r,e,t,n,i,s,a,c,l,y,f,d,g){if(o.isEmpty(r))return console.error("yungouos sdk error","商户订单号不能为空"),null;if(o.isEmpty(e))return console.error("yungouos sdk error","支付金额不能为空"),null;if(o.isEmpty(t))return console.error("yungouos sdk error","商户号不能为空"),null;if(o.isEmpty(n))return console.error("yungouos sdk error","商品名称不能为空"),null;if(o.isEmpty(i))return console.error("yungouos sdk error","openId不能为空"),null;if(o.isEmpty(s))return console.error("yungouos sdk error","人脸凭证不能为空"),null;if(o.isEmpty(g))return console.error("yungouos sdk error","支付密钥不能为空"),null;var b={out_trade_no:r,total_fee:e,mch_id:t,body:n,openId:i,face_code:s},h=m.paySign(b,g);if(b.sign=h,o.isEmpty(a)||(b.attach=a),o.isEmpty(c)||(b.notify_url=c),o.isEmpty(l)||(b.auto=l),o.isEmpty(y)||(b.auto_node=y),o.isEmpty(f)||(b.config_no=f),!o.isEmpty(d)){if(!o.isObject(d))return console.error("yungouos sdk error","biz_params不是合法的json"),null;b.biz_params=JSON.stringify(d)}return p.post(u.facePay,b)},wapPayAsync:function(r,e,t,n,o,u,i,s,a,c,l,p){return w.apply(this,arguments)},wapPay:function(r,e,t,n,i,s,a,c,l,y,f,d){if(o.isEmpty(r))return console.error("yungouos sdk error","商户订单号不能为空"),null;if(o.isEmpty(e))return console.error("yungouos sdk error","支付金额不能为空"),null;if(o.isEmpty(t))return console.error("yungouos sdk error","商户号不能为空"),null;if(o.isEmpty(n))return console.error("yungouos sdk error","商品名称不能为空"),null;if(o.isEmpty(d))return console.error("yungouos sdk error","支付密钥不能为空"),null;var g={out_trade_no:r,total_fee:e,mch_id:t,body:n},b=m.paySign(g,d);if(g.sign=b,o.isEmpty(i)||(g.attach=i),o.isEmpty(s)||(g.notify_url=s),o.isEmpty(a)||(g.return_url=a),o.isEmpty(c)||(g.auto=c),o.isEmpty(l)||(g.auto_node=l),o.isEmpty(y)||(g.config_no=y),!o.isEmpty(f)){if(!o.isObject(f))return console.error("yungouos sdk error","biz_params不是合法的json"),null;g.biz_params=JSON.stringify(f)}return p.post(u.wapPay,g)},appPayAsync:function(r,e,t,n,o,u,i,s,a,c,l,p){return S.apply(this,arguments)},appPay:function(r,e,t,n,i,s,a,c,l,y,f,d){if(o.isEmpty(r))return console.error("yungouos sdk error","APPID不能为空"),null;if(o.isEmpty(e))return console.error("yungouos sdk error","商户订单号不能为空"),null;if(o.isEmpty(t))return console.error("yungouos sdk error","支付金额不能为空"),null;if(o.isEmpty(n))return console.error("yungouos sdk error","商户号不能为空"),null;if(o.isEmpty(i))return console.error("yungouos sdk error","商品名称不能为空"),null;if(o.isEmpty(d))return console.error("yungouos sdk error","支付密钥不能为空"),null;var g={app_id:r,out_trade_no:e,total_fee:t,mch_id:n,body:i},b=m.paySign(g,d);if(g.sign=b,o.isEmpty(s)||(g.attach=s),o.isEmpty(a)||(g.notify_url=a),o.isEmpty(c)||(g.auto=c),o.isEmpty(l)||(g.auto_node=l),o.isEmpty(y)||(g.config_no=y),!o.isEmpty(f)){if(!o.isObject(f))return console.error("yungouos sdk error","biz_params不是合法的json"),null;g.biz_params=JSON.stringify(f)}return p.post(u.appPay,g)},refundAsync:function(r,e,t,n,o,u){return P.apply(this,arguments)},refund:function(r,e,t,n,i,s){if(o.isEmpty(r))return console.error("yungouos sdk error","商户订单号不能为空"),null;if(o.isEmpty(e))return console.error("yungouos sdk error","商户号不能为空"),null;if(o.isEmpty(t))return console.error("yungouos sdk error","退款金额不能为空"),null;if(o.isEmpty(s))return console.error("yungouos sdk error","支付密钥不能为空"),null;var a={out_trade_no:r,mch_id:e,money:t},c=m.paySign(a,s);return o.isEmpty(n)||(a.refund_desc=n),o.isEmpty(i)||(a.notify_url=i),a.sign=c,p.post(u.refundOrder,a)},getRefundResultAsync:function(r,e,t){return O.apply(this,arguments)},getRefundResult:function(r,e,t){if(o.isEmpty(r))return console.error("yungouos sdk error","退款单号不能为空"),null;if(o.isEmpty(e))return console.error("yungouos sdk error","商户号不能为空"),null;if(o.isEmpty(t))return console.error("yungouos sdk error","支付密钥不能为空"),null;var n={refund_no:r,mch_id:e},i=m.paySign(n,t);return n.sign=i,p.post(u.getRefundResult,n)},downloadBillAsync:function(r,e,t,n,o){return A.apply(this,arguments)},downloadBill:function(r,e,t,n,i){if(o.isEmpty(r))return console.error("yungouos sdk error","商户号不能为空"),null;if(o.isEmpty(e))return console.error("yungouos sdk error","对账单日期不能为空"),null;if(o.isEmpty(i))return console.error("yungouos sdk error","支付密钥不能为空"),null;var s={mch_id:r,date:e},a=m.paySign(s,i);return o.isEmpty(t)||(s.end_date=t),o.isEmpty(n)||(s.device_info=n),s.sign=a,p.post(u.downloadBill,s)}},j={nativePay:"https://api.pay.yungouos.com/api/pay/alipay/nativePay",wapPay:"https://api.pay.yungouos.com/api/pay/alipay/wapPay",jsPay:"https://api.pay.yungouos.com/api/pay/alipay/jsPay",mobilePay:"https://api.pay.yungouos.com/api/pay/alipay/mobilePay",appPay:"https://api.pay.yungouos.com/api/pay/alipay/appPay",refundOrder:"https://api.pay.yungouos.com/api/pay/alipay/refundOrder",getRefundResult:"https://api.pay.yungouos.com/api/pay/alipay/getRefundResult"};function I(r,e,t,n,o,u,i){try{var s=r[u](i),a=s.value}catch(r){return void t(r)}s.done?e(a):Promise.resolve(a).then(n,o)}function T(r){return function(){var e=this,t=arguments;return new Promise((function(n,o){var u=r.apply(e,t);function i(r){I(u,n,o,i,s,"next",r)}function s(r){I(u,n,o,i,s,"throw",r)}i(void 0)}))}}function N(){return(N=T(regeneratorRuntime.mark((function r(e,t,n,u,i,s,a,c,l,y){var f,d,g,b,h,E;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!o.isEmpty(e)){r.next=3;break}return console.error("yungouos sdk error","商户订单号不能为空"),r.abrupt("return",null);case 3:if(!o.isEmpty(t)){r.next=6;break}return console.error("yungouos sdk error","支付金额不能为空"),r.abrupt("return",null);case 6:if(!o.isEmpty(n)){r.next=9;break}return console.error("yungouos sdk error","商户号不能为空"),r.abrupt("return",null);case 9:if(!o.isEmpty(u)){r.next=12;break}return console.error("yungouos sdk error","商品名称不能为空"),r.abrupt("return",null);case 12:if(!o.isEmpty(y)){r.next=15;break}return console.error("yungouos sdk error","支付密钥不能为空"),r.abrupt("return",null);case 15:return f={out_trade_no:e,total_fee:t,mch_id:n,body:u},d=m.paySign(f,y),f.sign=d,o.isEmpty(i)||(f.type=i),o.isEmpty(s)||(f.attach=s),o.isEmpty(a)||(f.notify_url=a),g={},o.isEmpty(c)||(g.hbfq_num=c),o.isEmpty(l)||(g.hbfq_percent=l),o.isEmpty(g)||(f.hb_fq=JSON.stringify(g)),r.next=27,p.post(j.nativePay,f);case 27:if(b=r.sent,h=o.doApiResult(b),!o.isEmpty(h)){r.next=31;break}return r.abrupt("return",null);case 31:if(E=h.data,!o.isEmpty(E)){r.next=35;break}return console.error("yungouos sdk error","API无返回结果"),r.abrupt("return",null);case 35:return r.abrupt("return",E);case 36:case"end":return r.stop()}}),r)})))).apply(this,arguments)}function L(){return(L=T(regeneratorRuntime.mark((function r(e,t,n,u,i,s,a,c,l){var y,f,d,g,b,h;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!o.isEmpty(e)){r.next=3;break}return console.error("yungouos sdk error","商户订单号不能为空"),r.abrupt("return",null);case 3:if(!o.isEmpty(t)){r.next=6;break}return console.error("yungouos sdk error","支付金额不能为空"),r.abrupt("return",null);case 6:if(!o.isEmpty(n)){r.next=9;break}return console.error("yungouos sdk error","商户号不能为空"),r.abrupt("return",null);case 9:if(!o.isEmpty(u)){r.next=12;break}return console.error("yungouos sdk error","商品名称不能为空"),r.abrupt("return",null);case 12:if(!o.isEmpty(l)){r.next=15;break}return console.error("yungouos sdk error","支付密钥不能为空"),r.abrupt("return",null);case 15:return y={out_trade_no:e,total_fee:t,mch_id:n,body:u},f=m.paySign(y,l),y.sign=f,o.isEmpty(i)||(y.attach=i),o.isEmpty(s)||(y.notify_url=s),d={},o.isEmpty(a)||(d.hbfq_num=a),o.isEmpty(c)||(d.hbfq_percent=c),o.isEmpty(d)||(y.hb_fq=JSON.stringify(d)),r.next=26,p.post(j.wapPay,y);case 26:if(g=r.sent,b=o.doApiResult(g),!o.isEmpty(b)){r.next=30;break}return r.abrupt("return",null);case 30:if(h=b.data,!o.isEmpty(h)){r.next=34;break}return console.error("yungouos sdk error","API无返回结果"),r.abrupt("return",null);case 34:return r.abrupt("return",h);case 35:case"end":return r.stop()}}),r)})))).apply(this,arguments)}function C(){return(C=T(regeneratorRuntime.mark((function r(e,t,n,u,i,s,a,c,l,y){var f,d,g,b,h,E;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!o.isEmpty(e)){r.next=3;break}return console.error("yungouos sdk error","商户订单号不能为空"),r.abrupt("return",null);case 3:if(!o.isEmpty(t)){r.next=6;break}return console.error("yungouos sdk error","支付金额不能为空"),r.abrupt("return",null);case 6:if(!o.isEmpty(n)){r.next=9;break}return console.error("yungouos sdk error","商户号不能为空"),r.abrupt("return",null);case 9:if(!o.isEmpty(u)){r.next=12;break}return console.error("yungouos sdk error","买家ID不能为空"),r.abrupt("return",null);case 12:if(!o.isEmpty(i)){r.next=15;break}return console.error("yungouos sdk error","商品名称不能为空"),r.abrupt("return",null);case 15:if(!o.isEmpty(y)){r.next=18;break}return console.error("yungouos sdk error","支付密钥不能为空"),r.abrupt("return",null);case 18:return f={out_trade_no:e,total_fee:t,mch_id:n,buyer_id:u,body:i},d=m.paySign(f,y),f.sign=d,o.isEmpty(s)||(f.attach=s),o.isEmpty(a)||(f.notify_url=a),g={},o.isEmpty(c)||(g.hbfq_num=c),o.isEmpty(l)||(g.hbfq_percent=l),o.isEmpty(g)||(f.hb_fq=JSON.stringify(g)),r.next=29,p.post(j.jsPay,f);case 29:if(b=r.sent,h=o.doApiResult(b),!o.isEmpty(h)){r.next=33;break}return r.abrupt("return",null);case 33:if(E=h.data,!o.isEmpty(E)){r.next=37;break}return console.error("yungouos sdk error","API无返回结果"),r.abrupt("return",null);case 37:return r.abrupt("return",E);case 38:case"end":return r.stop()}}),r)})))).apply(this,arguments)}function U(){return(U=T(regeneratorRuntime.mark((function r(e,t,n,u,i,s,a,c,l,y){var f,d,g,b,h,E;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!o.isEmpty(e)){r.next=3;break}return console.error("yungouos sdk error","商户订单号不能为空"),r.abrupt("return",null);case 3:if(!o.isEmpty(t)){r.next=6;break}return console.error("yungouos sdk error","支付金额不能为空"),r.abrupt("return",null);case 6:if(!o.isEmpty(n)){r.next=9;break}return console.error("yungouos sdk error","商户号不能为空"),r.abrupt("return",null);case 9:if(!o.isEmpty(u)){r.next=12;break}return console.error("yungouos sdk error","商品名称不能为空"),r.abrupt("return",null);case 12:if(!o.isEmpty(y)){r.next=15;break}return console.error("yungouos sdk error","支付密钥不能为空"),r.abrupt("return",null);case 15:return f={out_trade_no:e,total_fee:t,mch_id:n,body:u},d=m.paySign(f,y),f.sign=d,o.isEmpty(i)||(f.attach=i),o.isEmpty(s)||(f.notify_url=s),o.isEmpty(a)||(f.return_url=a),g={},o.isEmpty(c)||(g.hbfq_num=c),o.isEmpty(l)||(g.hbfq_percent=l),o.isEmpty(g)||(f.hb_fq=JSON.stringify(g)),r.next=27,p.post(j.mobilePay,f);case 27:if(b=r.sent,h=o.doApiResult(b),!o.isEmpty(h)){r.next=31;break}return r.abrupt("return",null);case 31:if(E=h.data,!o.isEmpty(E)){r.next=35;break}return console.error("yungouos sdk error","API无返回结果"),r.abrupt("return",null);case 35:return r.abrupt("return",E);case 36:case"end":return r.stop()}}),r)})))).apply(this,arguments)}function B(){return(B=T(regeneratorRuntime.mark((function r(e,t,n,u,i,s,a,c,l){var y,f,d,g,b,h;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!o.isEmpty(e)){r.next=3;break}return console.error("yungouos sdk error","商户订单号不能为空"),r.abrupt("return",null);case 3:if(!o.isEmpty(t)){r.next=6;break}return console.error("yungouos sdk error","支付金额不能为空"),r.abrupt("return",null);case 6:if(!o.isEmpty(n)){r.next=9;break}return console.error("yungouos sdk error","商户号不能为空"),r.abrupt("return",null);case 9:if(!o.isEmpty(u)){r.next=12;break}return console.error("yungouos sdk error","商品名称不能为空"),r.abrupt("return",null);case 12:if(!o.isEmpty(l)){r.next=15;break}return console.error("yungouos sdk error","支付密钥不能为空"),r.abrupt("return",null);case 15:return y={out_trade_no:e,total_fee:t,mch_id:n,body:u},f=m.paySign(y,l),y.sign=f,o.isEmpty(i)||(y.attach=i),o.isEmpty(s)||(y.notify_url=s),d={},o.isEmpty(a)||(d.hbfq_num=a),o.isEmpty(c)||(d.hbfq_percent=c),o.isEmpty(d)||(y.hb_fq=JSON.stringify(d)),r.next=26,p.post(j.appPay,y);case 26:if(g=r.sent,b=o.doApiResult(g),!o.isEmpty(b)){r.next=30;break}return r.abrupt("return",null);case 30:if(h=b.data,!o.isEmpty(h)){r.next=34;break}return console.error("yungouos sdk error","API无返回结果"),r.abrupt("return",null);case 34:return r.abrupt("return",h);case 35:case"end":return r.stop()}}),r)})))).apply(this,arguments)}function D(){return(D=T(regeneratorRuntime.mark((function r(e,t,n,u,i){var s,a,c,l,y;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!o.isEmpty(e)){r.next=3;break}return console.error("yungouos sdk error","商户订单号不能为空"),r.abrupt("return",null);case 3:if(!o.isEmpty(t)){r.next=6;break}return console.error("yungouos sdk error","商户号不能为空"),r.abrupt("return",null);case 6:if(!o.isEmpty(n)){r.next=9;break}return console.error("yungouos sdk error","退款金额不能为空"),r.abrupt("return",null);case 9:if(!o.isEmpty(i)){r.next=12;break}return console.error("yungouos sdk error","支付密钥不能为空"),r.abrupt("return",null);case 12:return s={out_trade_no:e,mch_id:t,money:n},a=m.paySign(s,i),s.sign=a,o.isEmpty(u)||(s.refund_desc=u),r.next=18,p.post(j.refundOrder,s);case 18:if(c=r.sent,l=o.doApiResult(c),!o.isEmpty(l)){r.next=22;break}return r.abrupt("return",null);case 22:if(y=l.data,!o.isEmpty(y)){r.next=26;break}return console.error("yungouos sdk error","API无返回结果"),r.abrupt("return",null);case 26:return r.abrupt("return",y);case 27:case"end":return r.stop()}}),r)})))).apply(this,arguments)}function F(){return(F=T(regeneratorRuntime.mark((function r(e,t,n){var u,i,s,a,c;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!o.isEmpty(e)){r.next=3;break}return console.error("yungouos sdk error","退款单号不能为空"),r.abrupt("return",null);case 3:if(!o.isEmpty(t)){r.next=6;break}return console.error("yungouos sdk error","商户号不能为空"),r.abrupt("return",null);case 6:if(!o.isEmpty(n)){r.next=9;break}return console.error("yungouos sdk error","支付密钥不能为空"),r.abrupt("return",null);case 9:return u={refund_no:e,mch_id:t},i=m.paySign(u,n),u.sign=i,r.next=14,p.post(j.getRefundResult,u);case 14:if(s=r.sent,a=o.doApiResult(s),!o.isEmpty(a)){r.next=18;break}return r.abrupt("return",null);case 18:if(c=a.data,!o.isEmpty(c)){r.next=22;break}return console.error("yungouos sdk error","API无返回结果"),r.abrupt("return",null);case 22:return r.abrupt("return",c);case 23:case"end":return r.stop()}}),r)})))).apply(this,arguments)}var z={nativePayAsync:function(r,e,t,n,o,u,i,s,a,c){return N.apply(this,arguments)},nativePay:function(r,e,t,n,u,i,s,a,c,l){if(o.isEmpty(r))return console.error("yungouos sdk error","商户订单号不能为空"),null;if(o.isEmpty(e))return console.error("yungouos sdk error","支付金额不能为空"),null;if(o.isEmpty(t))return console.error("yungouos sdk error","商户号不能为空"),null;if(o.isEmpty(n))return console.error("yungouos sdk error","商品名称不能为空"),null;if(o.isEmpty(l))return console.error("yungouos sdk error","支付密钥不能为空"),null;var y={out_trade_no:r,total_fee:e,mch_id:t,body:n},f=m.paySign(y,l);y.sign=f,o.isEmpty(u)||(y.type=u),o.isEmpty(i)||(y.attach=i),o.isEmpty(s)||(y.notify_url=s);var d={};return o.isEmpty(a)||(d.hbfq_num=a),o.isEmpty(c)||(d.hbfq_percent=c),o.isEmpty(d)||(y.hb_fq=JSON.stringify(d)),p.post(j.nativePay,y)},wapPayAsync:function(r,e,t,n,o,u,i,s,a){return L.apply(this,arguments)},wapPay:function(r,e,t,n,u,i,s,a,c){if(o.isEmpty(r))return console.error("yungouos sdk error","商户订单号不能为空"),null;if(o.isEmpty(e))return console.error("yungouos sdk error","支付金额不能为空"),null;if(o.isEmpty(t))return console.error("yungouos sdk error","商户号不能为空"),null;if(o.isEmpty(n))return console.error("yungouos sdk error","商品名称不能为空"),null;if(o.isEmpty(c))return console.error("yungouos sdk error","支付密钥不能为空"),null;var l={out_trade_no:r,total_fee:e,mch_id:t,body:n},y=m.paySign(l,c);l.sign=y,o.isEmpty(u)||(l.attach=u),o.isEmpty(i)||(l.notify_url=i);var f={};return o.isEmpty(s)||(f.hbfq_num=s),o.isEmpty(a)||(f.hbfq_percent=a),o.isEmpty(f)||(l.hb_fq=JSON.stringify(f)),p.post(j.wapPay,l)},jsPayAsync:function(r,e,t,n,o,u,i,s,a,c){return C.apply(this,arguments)},jsPay:function(r,e,t,n,u,i,s,a,c,l){if(o.isEmpty(r))return console.error("yungouos sdk error","商户订单号不能为空"),null;if(o.isEmpty(e))return console.error("yungouos sdk error","支付金额不能为空"),null;if(o.isEmpty(t))return console.error("yungouos sdk error","商户号不能为空"),null;if(o.isEmpty(n))return console.error("yungouos sdk error","买家ID不能为空"),null;if(o.isEmpty(u))return console.error("yungouos sdk error","商品名称不能为空"),null;if(o.isEmpty(l))return console.error("yungouos sdk error","支付密钥不能为空"),null;var y={out_trade_no:r,total_fee:e,mch_id:t,buyer_id:n,body:u},f=m.paySign(y,l);y.sign=f,o.isEmpty(i)||(y.attach=i),o.isEmpty(s)||(y.notify_url=s);var d={};return o.isEmpty(a)||(d.hbfq_num=a),o.isEmpty(c)||(d.hbfq_percent=c),o.isEmpty(d)||(y.hb_fq=JSON.stringify(d)),p.post(j.jsPay,y)},h5PayAsync:function(r,e,t,n,o,u,i,s,a,c){return U.apply(this,arguments)},h5Pay:function(r,e,t,n,u,i,s,a,c,l){if(o.isEmpty(r))return console.error("yungouos sdk error","商户订单号不能为空"),null;if(o.isEmpty(e))return console.error("yungouos sdk error","支付金额不能为空"),null;if(o.isEmpty(t))return console.error("yungouos sdk error","商户号不能为空"),null;if(o.isEmpty(n))return console.error("yungouos sdk error","商品名称不能为空"),null;if(o.isEmpty(l))return console.error("yungouos sdk error","支付密钥不能为空"),null;var y={out_trade_no:r,total_fee:e,mch_id:t,body:n},f=m.paySign(y,l);y.sign=f,o.isEmpty(u)||(y.attach=u),o.isEmpty(i)||(y.notify_url=i),o.isEmpty(s)||(y.return_url=s);var d={};return o.isEmpty(a)||(d.hbfq_num=a),o.isEmpty(c)||(d.hbfq_percent=c),o.isEmpty(d)||(y.hb_fq=JSON.stringify(d)),p.post(j.mobilePay,y)},appPayAsync:function(r,e,t,n,o,u,i,s,a){return B.apply(this,arguments)},appPay:function(r,e,t,n,u,i,s,a,c){if(o.isEmpty(r))return console.error("yungouos sdk error","商户订单号不能为空"),null;if(o.isEmpty(e))return console.error("yungouos sdk error","支付金额不能为空"),null;if(o.isEmpty(t))return console.error("yungouos sdk error","商户号不能为空"),null;if(o.isEmpty(n))return console.error("yungouos sdk error","商品名称不能为空"),null;if(o.isEmpty(c))return console.error("yungouos sdk error","支付密钥不能为空"),null;var l={out_trade_no:r,total_fee:e,mch_id:t,body:n},y=m.paySign(l,c);l.sign=y,o.isEmpty(u)||(l.attach=u),o.isEmpty(i)||(l.notify_url=i);var f={};return o.isEmpty(s)||(f.hbfq_num=s),o.isEmpty(a)||(f.hbfq_percent=a),o.isEmpty(f)||(l.hb_fq=JSON.stringify(f)),p.post(j.appPay,l)},refundAsync:function(r,e,t,n,o){return D.apply(this,arguments)},refund:function(r,e,t,n,u){if(o.isEmpty(r))return console.error("yungouos sdk error","商户订单号不能为空"),null;if(o.isEmpty(e))return console.error("yungouos sdk error","商户号不能为空"),null;if(o.isEmpty(t))return console.error("yungouos sdk error","退款金额不能为空"),null;if(o.isEmpty(u))return console.error("yungouos sdk error","支付密钥不能为空"),null;var i={out_trade_no:r,mch_id:e,money:t},s=m.paySign(i,u);return i.sign=s,o.isEmpty(n)||(i.refund_desc=n),p.post(j.refundOrder,i)},getRefundResultAsync:function(r,e,t){return F.apply(this,arguments)},getRefundResult:function(r,e,t){if(o.isEmpty(r))return console.error("yungouos sdk error","退款单号不能为空"),null;if(o.isEmpty(e))return console.error("yungouos sdk error","商户号不能为空"),null;if(o.isEmpty(t))return console.error("yungouos sdk error","支付密钥不能为空"),null;var n={refund_no:r,mch_id:e},u=m.paySign(n,t);return n.sign=u,p.post(j.getRefundResult,n)}},M=M+"/api/finance/profitsharing/config",q={getConfigUrl:M,getCreateBillUrl:"https://api.pay.yungouos.com/api/finance/profitsharing/createBill",getSendPayUrl:"https://api.pay.yungouos.com/api/finance/profitsharing/sendPay",getPayResultUrl:"https://api.pay.yungouos.com/api/finance/profitsharing/getPayResult",getFinishUrl:"https://api.pay.yungouos.com/api/finance/profitsharing/finish",getRePayWxPayUrl:"https://api.pay.yungouos.com/api/finance/repay/wxpay",getRePayAliPayUrl:"https://api.pay.yungouos.com/api/finance/repay/alipay",getRePayInfoUrl:"https://api.pay.yungouos.com/api/finance/repay/getRePayInfo",getRePayBankUrl:"https://api.pay.yungouos.com/api/finance/repay/bank"};function J(r,e,t,n,o,u,i){try{var s=r[u](i),a=s.value}catch(r){return void t(r)}s.done?e(a):Promise.resolve(a).then(n,o)}function G(r){return function(){var e=this,t=arguments;return new Promise((function(n,o){var u=r.apply(e,t);function i(r){J(u,n,o,i,s,"next",r)}function s(r){J(u,n,o,i,s,"throw",r)}i(void 0)}))}}function W(){return(W=G(regeneratorRuntime.mark((function r(e,t,n,u,i,s,a,c,l){var y,f,d,g,b,h;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(y="wxpay",!o.isEmpty(e)){r.next=4;break}return console.error("yungouos sdk error","商户号不能为空"),r.abrupt("return",null);case 4:if(!o.isEmpty(n)){r.next=7;break}return console.error("yungouos sdk error","分账原因不能为空"),r.abrupt("return",null);case 7:if(!o.isEmpty(l)){r.next=10;break}return console.error("yungouos sdk error","支付密钥不能为空"),r.abrupt("return",null);case 10:if(!o.isEmpty(u)||!o.isEmpty(i)){r.next=13;break}return console.error("yungouos sdk error","分账收款方openId、收款帐号、收款商户号不能同时为空！"),r.abrupt("return",null);case 13:return f={mch_id:e,reason:n,channel:y},o.isEmpty(u)||(f.openId=u),o.isEmpty(i)||(f.receiver_mch_id=i),o.isEmpty(s)||(f.name=s),o.isEmpty(a)||(f.rate=a),o.isEmpty(c)||(f.money=c),d=m.paySign(f,l),f.sign=d,o.isEmpty(t)||(f.appId=t),r.next=24,p.post(q.getConfigUrl,f);case 24:if(g=r.sent,b=o.doApiResult(g),!o.isEmpty(b)){r.next=28;break}return r.abrupt("return",null);case 28:if(h=b.data,!o.isEmpty(h)){r.next=32;break}return console.error("yungouos sdk error","API无返回结果"),r.abrupt("return",null);case 32:return r.abrupt("return",h);case 33:case"end":return r.stop()}}),r)})))).apply(this,arguments)}function H(){return(H=G(regeneratorRuntime.mark((function r(e,t,n,u,i,s,a){var c,l,y,f,d,g;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(c="alipay",!o.isEmpty(e)){r.next=4;break}return console.error("yungouos sdk error","商户号不能为空"),r.abrupt("return",null);case 4:if(!o.isEmpty(t)){r.next=7;break}return console.error("yungouos sdk error","分账原因不能为空"),r.abrupt("return",null);case 7:if(!o.isEmpty(n)){r.next=10;break}return console.error("yungouos sdk error","分账方支付宝账户不能为空"),r.abrupt("return",null);case 10:if(!o.isEmpty(u)){r.next=13;break}return console.error("yungouos sdk error","分账方支付宝账户姓名不能为空"),r.abrupt("return",null);case 13:if(!o.isEmpty(a)){r.next=16;break}return console.error("yungouos sdk error","支付密钥不能为空"),r.abrupt("return",null);case 16:return l={mch_id:e,reason:t,channel:c,account:n,name:u},o.isEmpty(i)||(l.rate=i),o.isEmpty(s)||(l.money=s),y=m.paySign(l,a),l.sign=y,r.next=23,p.post(q.getConfigUrl,l);case 23:if(f=r.sent,d=o.doApiResult(f),!o.isEmpty(d)){r.next=27;break}return r.abrupt("return",null);case 27:if(g=d.data,!o.isEmpty(g)){r.next=31;break}return console.error("yungouos sdk error","API无返回结果"),r.abrupt("return",null);case 31:return r.abrupt("return",g);case 32:case"end":return r.stop()}}),r)})))).apply(this,arguments)}function $(){return($=G(regeneratorRuntime.mark((function r(e,t,n,u,i,s,a,c,l,y){var f,d,g,b,h;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!o.isEmpty(e)){r.next=3;break}return console.error("yungouos sdk error","商户号不能为空"),r.abrupt("return",null);case 3:if(!o.isEmpty(n)){r.next=6;break}return console.error("yungouos sdk error","分账原因不能为空"),r.abrupt("return",null);case 6:if(!o.isEmpty(u)){r.next=9;break}return console.error("yungouos sdk error","分账渠道不能为空"),r.abrupt("return",null);case 9:if(!o.isEmpty(y)){r.next=12;break}return console.error("yungouos sdk error","支付密钥不能为空"),r.abrupt("return",null);case 12:if("wxpay"==u||"alipay"==u){r.next=15;break}return console.error("yungouos sdk error","分账渠道参数不合法！参考值：wxpay、alipay"),r.abrupt("return",null);case 15:if(!o.isEmpty(i)||!o.isEmpty(s)){r.next=18;break}return console.error("yungouos sdk error","分账收款方openId、收款帐号、收款商户号不能同时为空！"),r.abrupt("return",null);case 18:return f={mch_id:e,reason:n,channel:u},o.isEmpty(i)||(f.openId=i),o.isEmpty(s)||(f.receiver_mch_id=s),o.isEmpty(a)||(f.name=a),o.isEmpty(c)||(f.rate=c),o.isEmpty(l)||(f.money=l),d=m.paySign(f,y),f.sign=d,o.isEmpty(t)||(f.appId=t),r.next=29,p.post(q.getConfigUrl,f);case 29:if(g=r.sent,b=o.doApiResult(g),!o.isEmpty(b)){r.next=33;break}return r.abrupt("return",null);case 33:if(h=b.data,!o.isEmpty(h)){r.next=37;break}return console.error("yungouos sdk error","API无返回结果"),r.abrupt("return",null);case 37:return r.abrupt("return",h);case 38:case"end":return r.stop()}}),r)})))).apply(this,arguments)}function V(){return(V=G(regeneratorRuntime.mark((function r(e,t,n,u,i,s,a){var c,l,y,f,d;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!o.isEmpty(e)){r.next=3;break}return console.error("yungouos sdk error","商户号不能为空"),r.abrupt("return",null);case 3:if(!o.isEmpty(t)){r.next=6;break}return console.error("yungouos sdk error","商户单号不能为空！"),r.abrupt("return",null);case 6:if(!o.isEmpty(a)){r.next=9;break}return console.error("yungouos sdk error","支付密钥不能为空"),r.abrupt("return",null);case 9:return c={mch_id:e,out_trade_no:t},l=m.paySign(c,a),c.sign=l,o.isEmpty(n)||(c.config_no=n),o.isEmpty(u)||(c.rate=u),o.isEmpty(i)||(c.money=i),o.isEmpty(s)||(c.notify_url=s),r.next=18,p.post(q.getCreateBillUrl,c);case 18:if(y=r.sent,f=o.doApiResult(y),!o.isEmpty(f)){r.next=22;break}return r.abrupt("return",null);case 22:if(d=f.data,!o.isEmpty(d)){r.next=26;break}return console.error("yungouos sdk error","API无返回结果"),r.abrupt("return",null);case 26:return r.abrupt("return",d);case 27:case"end":return r.stop()}}),r)})))).apply(this,arguments)}function Y(){return(Y=G(regeneratorRuntime.mark((function r(e,t,n,u){var i,s,a,c,l;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!o.isEmpty(e)){r.next=3;break}return console.error("yungouos sdk error","商户号不能为空"),r.abrupt("return",null);case 3:if(!o.isEmpty(t)){r.next=6;break}return console.error("yungouos sdk error","商户单号不能为空！"),r.abrupt("return",null);case 6:if(!o.isEmpty(u)){r.next=9;break}return console.error("yungouos sdk error","支付密钥不能为空"),r.abrupt("return",null);case 9:return i={mch_id:e,out_trade_no:t},s=m.paySign(i,u),i.sign=s,o.isEmpty(n)||(i.config_no=n),r.next=15,p.post(q.getCreateBillUrl,i);case 15:if(a=r.sent,c=o.doApiResult(a),!o.isEmpty(c)){r.next=19;break}return r.abrupt("return",null);case 19:if(l=c.data,!o.isEmpty(l)){r.next=23;break}return console.error("yungouos sdk error","API无返回结果"),r.abrupt("return",null);case 23:return r.abrupt("return",l);case 24:case"end":return r.stop()}}),r)})))).apply(this,arguments)}function Q(){return(Q=G(regeneratorRuntime.mark((function r(e,t,n,u){var i,s,a,c,l;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!o.isEmpty(e)){r.next=3;break}return console.error("yungouos sdk error","商户号不能为空"),r.abrupt("return",null);case 3:if(!o.isEmpty(t)){r.next=6;break}return console.error("yungouos sdk error","分账单号不能为空"),r.abrupt("return",null);case 6:if(!o.isEmpty(n)){r.next=9;break}return console.error("yungouos sdk error","分账描述不能为空"),r.abrupt("return",null);case 9:if(!o.isEmpty(u)){r.next=12;break}return console.error("yungouos sdk error","支付密钥不能为空"),r.abrupt("return",null);case 12:return i={mch_id:e,ps_no:t,description:n},s=m.paySign(i,u),i.sign=s,r.next=17,p.post(q.getSendPayUrl,i);case 17:if(a=r.sent,c=o.doApiResult(a),!o.isEmpty(c)){r.next=21;break}return r.abrupt("return",null);case 21:if(l=c.data,!o.isEmpty(l)){r.next=25;break}return console.error("yungouos sdk error","API无返回结果"),r.abrupt("return",null);case 25:return r.abrupt("return",l);case 26:case"end":return r.stop()}}),r)})))).apply(this,arguments)}function K(){return(K=G(regeneratorRuntime.mark((function r(e,t,n){var u,i,s,a,c;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!o.isEmpty(e)){r.next=3;break}return console.error("yungouos sdk error","商户号不能为空"),r.abrupt("return",null);case 3:if(!o.isEmpty(t)){r.next=6;break}return console.error("yungouos sdk error","分账单号不能为空"),r.abrupt("return",null);case 6:if(!o.isEmpty(n)){r.next=9;break}return console.error("yungouos sdk error","支付密钥不能为空"),r.abrupt("return",null);case 9:return u={mch_id:e,ps_no:t},i=m.paySign(u,n),u.sign=i,r.next=14,p.post(q.getPayResultUrl,u);case 14:if(s=r.sent,a=o.doApiResult(s),!o.isEmpty(a)){r.next=18;break}return r.abrupt("return",null);case 18:if(c=a.data,!o.isEmpty(c)){r.next=22;break}return console.error("yungouos sdk error","API无返回结果"),r.abrupt("return",null);case 22:return r.abrupt("return",c);case 23:case"end":return r.stop()}}),r)})))).apply(this,arguments)}function X(){return(X=G(regeneratorRuntime.mark((function r(e,t,n){var u,i,s,a,c;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!o.isEmpty(e)){r.next=3;break}return console.error("yungouos sdk error","商户号不能为空"),r.abrupt("return",null);case 3:if(!o.isEmpty(t)){r.next=6;break}return console.error("yungouos sdk error","分账单号不能为空"),r.abrupt("return",null);case 6:if(!o.isEmpty(n)){r.next=9;break}return console.error("yungouos sdk error","支付密钥不能为空"),r.abrupt("return",null);case 9:return u={mch_id:e,out_trade_no:t},i=m.paySign(u,n),u.sign=i,r.next=14,p.post(q.getFinishUrl,u);case 14:if(s=r.sent,a=o.doApiResult(s),!o.isEmpty(a)){r.next=18;break}return r.abrupt("return",null);case 18:if(c=a.data,!o.isEmpty(c)){r.next=22;break}return console.error("yungouos sdk error","API无返回结果"),r.abrupt("return",null);case 22:return r.abrupt("return",c);case 23:case"end":return r.stop()}}),r)})))).apply(this,arguments)}function Z(){return(Z=G(regeneratorRuntime.mark((function r(e,t,n,u,i,s,a,c,l){var y,f,d,g,b;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!o.isEmpty(e)){r.next=3;break}return console.error("yungouos sdk error","YunGouOS商户ID不能为空"),r.abrupt("return",null);case 3:if(!o.isEmpty(t)){r.next=6;break}return console.error("yungouos sdk error","商户单号不能为空"),r.abrupt("return",null);case 6:if(!o.isEmpty(n)){r.next=9;break}return console.error("yungouos sdk error","收款账户openid不能为空"),r.abrupt("return",null);case 9:if(!o.isEmpty(i)){r.next=12;break}return console.error("yungouos sdk error","付款金额不能为空"),r.abrupt("return",null);case 12:if(!o.isEmpty(s)){r.next=15;break}return console.error("yungouos sdk error","付款描述不能为空"),r.abrupt("return",null);case 15:if(!o.isEmpty(l)){r.next=18;break}return console.error("yungouos sdk error","商户密钥不能为空"),r.abrupt("return",null);case 18:return y={merchant_id:e,out_trade_no:t,account:n,money:i,desc:s},f=m.paySign(y,l),y.sign=f,o.isEmpty(u)||(y.account_name=u),o.isEmpty(a)||(y.mch_id=a),o.isEmpty(c)||(y.notify_url=c),r.next=26,p.post(q.getRePayWxPayUrl,y);case 26:if(d=r.sent,g=o.doApiResult(d),!o.isEmpty(g)){r.next=30;break}return r.abrupt("return",null);case 30:if(b=g.data,!o.isEmpty(b)){r.next=34;break}return console.error("yungouos sdk error","API无返回结果"),r.abrupt("return",null);case 34:return r.abrupt("return",b);case 35:case"end":return r.stop()}}),r)})))).apply(this,arguments)}function rr(){return(rr=G(regeneratorRuntime.mark((function r(e,t,n,u,i,s,a,c,l){var y,f,d,g,b;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!o.isEmpty(e)){r.next=3;break}return console.error("yungouos sdk error","YunGouOS商户ID不能为空"),r.abrupt("return",null);case 3:if(!o.isEmpty(t)){r.next=6;break}return console.error("yungouos sdk error","商户单号不能为空"),r.abrupt("return",null);case 6:if(!o.isEmpty(n)){r.next=9;break}return console.error("yungouos sdk error","收款支付宝账户不能为空"),r.abrupt("return",null);case 9:if(!o.isEmpty(u)){r.next=12;break}return console.error("yungouos sdk error","收款支付宝姓名不能为空"),r.abrupt("return",null);case 12:if(!o.isEmpty(i)){r.next=15;break}return console.error("yungouos sdk error","付款金额不能为空"),r.abrupt("return",null);case 15:if(!o.isEmpty(s)){r.next=18;break}return console.error("yungouos sdk error","付款描述不能为空"),r.abrupt("return",null);case 18:if(!o.isEmpty(l)){r.next=21;break}return console.error("yungouos sdk error","商户密钥不能为空"),r.abrupt("return",null);case 21:return y={merchant_id:e,out_trade_no:t,account:n,account_name:u,money:i,desc:s},f=m.paySign(y,l),y.sign=f,o.isEmpty(a)||(y.mch_id=a),o.isEmpty(c)||(y.notify_url=c),r.next=28,p.post(q.getRePayAliPayUrl,y);case 28:if(d=r.sent,g=o.doApiResult(d),!o.isEmpty(g)){r.next=32;break}return r.abrupt("return",null);case 32:if(b=g.data,!o.isEmpty(b)){r.next=36;break}return console.error("yungouos sdk error","API无返回结果"),r.abrupt("return",null);case 36:return r.abrupt("return",b);case 37:case"end":return r.stop()}}),r)})))).apply(this,arguments)}function er(){return(er=G(regeneratorRuntime.mark((function r(e,t,n){var u,i,s,a,c;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!o.isEmpty(e)){r.next=3;break}return console.error("yungouos sdk error","商户单号不能为空"),r.abrupt("return",null);case 3:if(!o.isEmpty(t)){r.next=6;break}return console.error("yungouos sdk error","YunGouOS商户ID不能为空"),r.abrupt("return",null);case 6:if(!o.isEmpty(n)){r.next=9;break}return console.error("yungouos sdk error","商户密钥不能为空"),r.abrupt("return",null);case 9:return u={out_trade_no:e,merchant_id:t},i=m.paySign(u,n),u.sign=i,r.next=14,p.get(q.getRePayInfoUrl,u);case 14:if(s=r.sent,a=o.doApiResult(s),!o.isEmpty(a)){r.next=18;break}return r.abrupt("return",null);case 18:if(c=a.data,!o.isEmpty(c)){r.next=22;break}return console.error("yungouos sdk error","API无返回结果"),r.abrupt("return",null);case 22:return r.abrupt("return",c);case 23:case"end":return r.stop()}}),r)})))).apply(this,arguments)}function tr(){return(tr=G(regeneratorRuntime.mark((function r(e,t,n,u,i,s,a,c,l,y,f,d,g){var b,h,E,v,k;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!o.isEmpty(e)){r.next=3;break}return console.error("yungouos sdk error","YunGouOS商户ID不能为空"),r.abrupt("return",null);case 3:if(!o.isEmpty(t)){r.next=6;break}return console.error("yungouos sdk error","商户单号不能为空"),r.abrupt("return",null);case 6:if(!o.isEmpty(n)){r.next=9;break}return console.error("yungouos sdk error","银行卡号不能为空"),r.abrupt("return",null);case 9:if(!o.isEmpty(u)){r.next=12;break}return console.error("yungouos sdk error","银行卡姓名不能为空"),r.abrupt("return",null);case 12:if(!o.isEmpty(i)){r.next=15;break}return console.error("yungouos sdk error","付款金额不能为空"),r.abrupt("return",null);case 15:if(!o.isEmpty(s)){r.next=18;break}return console.error("yungouos sdk error","付款描述不能为空"),r.abrupt("return",null);case 18:if(!o.isEmpty(g)){r.next=21;break}return console.error("yungouos sdk error","商户密钥不能为空"),r.abrupt("return",null);case 21:return b={merchant_id:e,out_trade_no:t,account:n,account_name:u,money:i,desc:s},o.isEmpty(c)||(b.bank_name=c),o.isEmpty(l)||(b.bank_code=l),h=m.paySign(b,g),b.sign=h,o.isEmpty(a)||(b.bank_type=a),o.isEmpty(y)||(b.mch_id=y),o.isEmpty(f)||(b.app_id=f),o.isEmpty(d)||(b.notify_url=d),r.next=32,p.post(q.getRePayBankUrl,b);case 32:if(E=r.sent,v=o.doApiResult(E),!o.isEmpty(v)){r.next=36;break}return r.abrupt("return",null);case 36:if(k=v.data,!o.isEmpty(k)){r.next=40;break}return console.error("yungouos sdk error","API无返回结果"),r.abrupt("return",null);case 40:return r.abrupt("return",k);case 41:case"end":return r.stop()}}),r)})))).apply(this,arguments)}var nr={configAsync:function(r,e,t,n,o,u,i,s,a,c){return $.apply(this,arguments)},config:function(r,e,t,n,u,i,s,a,c,l){if(o.isEmpty(r))return console.error("yungouos sdk error","商户号不能为空"),null;if(o.isEmpty(t))return console.error("yungouos sdk error","分账原因不能为空"),null;if(o.isEmpty(n))return console.error("yungouos sdk error","分账渠道不能为空"),null;if(o.isEmpty(l))return console.error("yungouos sdk error","支付密钥不能为空"),null;if("wxpay"!=n&&"alipay"!=n)return console.error("yungouos sdk error","分账渠道参数不合法！参考值：wxpay、alipay"),null;if(o.isEmpty(u)&&o.isEmpty(i))return console.error("yungouos sdk error","分账收款方openId、收款帐号、收款商户号不能同时为空！"),null;var y={mch_id:r,reason:t,channel:n};o.isEmpty(u)||(y.openId=u),o.isEmpty(i)||(y.receiver_mch_id=i),o.isEmpty(s)||(y.name=s),o.isEmpty(a)||(y.rate=a),o.isEmpty(c)||(y.money=c);var f=m.paySign(y,l);return y.sign=f,o.isEmpty(e)||(y.appId=e),p.post(q.getConfigUrl,y)},createBillAsync:function(r,e,t,n){return Y.apply(this,arguments)},createBill:function(r,e,t,n){if(o.isEmpty(r))return console.error("yungouos sdk error","商户号不能为空"),null;if(o.isEmpty(e))return console.error("yungouos sdk error","商户单号不能为空！"),null;if(o.isEmpty(n))return console.error("yungouos sdk error","支付密钥不能为空"),null;var u={mch_id:r,out_trade_no:e},i=m.paySign(u,n);return u.sign=i,o.isEmpty(t)||(u.config_no=t),p.post(q.getCreateBillUrl,u)},createBillV2Async:function(r,e,t,n,o,u,i){return V.apply(this,arguments)},createBillV2:function(r,e,t,n,u,i,s){if(o.isEmpty(r))return console.error("yungouos sdk error","商户号不能为空"),null;if(o.isEmpty(e))return console.error("yungouos sdk error","商户单号不能为空！"),null;if(o.isEmpty(s))return console.error("yungouos sdk error","支付密钥不能为空"),null;var a={mch_id:r,out_trade_no:e},c=m.paySign(a,s);return a.sign=c,o.isEmpty(t)||(a.config_no=t),o.isEmpty(n)||(a.rate=n),o.isEmpty(u)||(a.money=u),o.isEmpty(i)||(a.notify_url=i),p.post(q.getCreateBillUrl,a)},sendPayAsync:function(r,e,t,n){return Q.apply(this,arguments)},sendPay:function(r,e,t,n){if(o.isEmpty(r))return console.error("yungouos sdk error","商户号不能为空"),null;if(o.isEmpty(e))return console.error("yungouos sdk error","分账单号不能为空"),null;if(o.isEmpty(t))return console.error("yungouos sdk error","分账描述不能为空"),null;if(o.isEmpty(n))return console.error("yungouos sdk error","支付密钥不能为空"),null;var u={mch_id:r,ps_no:e,description:t},i=m.paySign(u,n);return u.sign=i,p.post(q.getSendPayUrl,u)},getPayResultAsync:function(r,e,t){return K.apply(this,arguments)},getPayResult:function(r,e,t){if(o.isEmpty(r))return console.error("yungouos sdk error","商户号不能为空"),null;if(o.isEmpty(e))return console.error("yungouos sdk error","分账单号不能为空"),null;if(o.isEmpty(t))return console.error("yungouos sdk error","支付密钥不能为空"),null;var n={mch_id:r,ps_no:e},u=m.paySign(n,t);return n.sign=u,p.post(q.getPayResultUrl,n)},finishAsync:function(r,e,t){return X.apply(this,arguments)},finish:function(r,e,t){if(o.isEmpty(r))return console.error("yungouos sdk error","商户号不能为空"),null;if(o.isEmpty(e))return console.error("yungouos sdk error","分账单号不能为空"),null;if(o.isEmpty(t))return console.error("yungouos sdk error","支付密钥不能为空"),null;var n={mch_id:r,out_trade_no:e},u=m.paySign(n,t);return n.sign=u,p.post(q.getFinishUrl,n)},rePayWxPayAsync:function(r,e,t,n,o,u,i,s,a){return Z.apply(this,arguments)},rePayWxPay:function(r,e,t,n,u,i,s,a,c){if(o.isEmpty(r))return console.error("yungouos sdk error","YunGouOS商户ID不能为空"),null;if(o.isEmpty(e))return console.error("yungouos sdk error","商户单号不能为空"),null;if(o.isEmpty(t))return console.error("yungouos sdk error","收款账户openid不能为空"),null;if(o.isEmpty(u))return console.error("yungouos sdk error","付款金额不能为空"),null;if(o.isEmpty(i))return console.error("yungouos sdk error","付款描述不能为空"),null;if(o.isEmpty(c))return console.error("yungouos sdk error","商户密钥不能为空"),null;var l={merchant_id:r,out_trade_no:e,account:t,money:u,desc:i},y=m.paySign(l,c);return l.sign=y,o.isEmpty(n)||(l.account_name=n),o.isEmpty(s)||(l.mch_id=s),o.isEmpty(a)||(l.notify_url=a),p.post(q.getRePayWxPayUrl,l)},rePayAliPayAsync:function(r,e,t,n,o,u,i,s,a){return rr.apply(this,arguments)},rePayAliPay:function(r,e,t,n,u,i,s,a,c){if(o.isEmpty(r))return console.error("yungouos sdk error","YunGouOS商户ID不能为空"),null;if(o.isEmpty(e))return console.error("yungouos sdk error","商户单号不能为空"),null;if(o.isEmpty(t))return console.error("yungouos sdk error","收款支付宝账户不能为空"),null;if(o.isEmpty(n))return console.error("yungouos sdk error","收款支付宝姓名不能为空"),null;if(o.isEmpty(u))return console.error("yungouos sdk error","付款金额不能为空"),null;if(o.isEmpty(i))return console.error("yungouos sdk error","付款描述不能为空"),null;if(o.isEmpty(c))return console.error("yungouos sdk error","商户密钥不能为空"),null;var l={merchant_id:r,out_trade_no:e,account:t,account_name:n,money:u,desc:i},y=m.paySign(l,c);return l.sign=y,o.isEmpty(s)||(l.mch_id=s),o.isEmpty(a)||(l.notify_url=a),p.post(q.getRePayAliPayUrl,l)},wxPayConfigAsync:function(r,e,t,n,o,u,i,s,a){return W.apply(this,arguments)},wxPayConfig:function(r,e,t,n,u,i,s,a,c){if(o.isEmpty(r))return console.error("yungouos sdk error","商户号不能为空"),null;if(o.isEmpty(t))return console.error("yungouos sdk error","分账原因不能为空"),null;if(o.isEmpty(c))return console.error("yungouos sdk error","支付密钥不能为空"),null;if(o.isEmpty(n)&&o.isEmpty(u))return console.error("yungouos sdk error","分账收款方openId、收款帐号、收款商户号不能同时为空！"),null;var l={mch_id:r,reason:t,channel:"wxpay"};o.isEmpty(n)||(l.openId=n),o.isEmpty(u)||(l.receiver_mch_id=u),o.isEmpty(i)||(l.name=i),o.isEmpty(s)||(l.rate=s),o.isEmpty(a)||(l.money=a);var y=m.paySign(l,c);return l.sign=y,o.isEmpty(e)||(l.appId=e),p.post(q.getConfigUrl,l)},aliPayConfigAsync:function(r,e,t,n,o,u,i){return H.apply(this,arguments)},aliPayConfig:function(r,e,t,n,u,i,s){if(o.isEmpty(r))return console.error("yungouos sdk error","商户号不能为空"),null;if(o.isEmpty(e))return console.error("yungouos sdk error","分账原因不能为空"),null;if(o.isEmpty(t))return console.error("yungouos sdk error","分账方支付宝账户不能为空"),null;if(o.isEmpty(n))return console.error("yungouos sdk error","分账方支付宝账户姓名不能为空"),null;if(o.isEmpty(s))return console.error("yungouos sdk error","支付密钥不能为空"),null;var a={mch_id:r,reason:e,channel:"alipay",account:t,name:n};o.isEmpty(u)||(a.rate=u),o.isEmpty(i)||(a.money=i);var c=m.paySign(a,s);return a.sign=c,p.post(q.getConfigUrl,a)},getRePayInfoAsync:function(r,e,t){return er.apply(this,arguments)},getRePayInfo:function(r,e,t){if(o.isEmpty(r))return console.error("yungouos sdk error","商户单号不能为空"),null;if(o.isEmpty(e))return console.error("yungouos sdk error","YunGouOS商户ID不能为空"),null;if(o.isEmpty(t))return console.error("yungouos sdk error","商户密钥不能为空"),null;var n={out_trade_no:r,merchant_id:e},u=m.paySign(n,t);return n.sign=u,p.get(q.getRePayInfoUrl,n)},rePayBankAsync:function(r,e,t,n,o,u,i,s,a,c,l,p,y){return tr.apply(this,arguments)},rePayBank:function(r,e,t,n,u,i,s,a,c,l,y,f,d){if(o.isEmpty(r))return console.error("yungouos sdk error","YunGouOS商户ID不能为空"),null;if(o.isEmpty(e))return console.error("yungouos sdk error","商户单号不能为空"),null;if(o.isEmpty(t))return console.error("yungouos sdk error","银行卡号不能为空"),null;if(o.isEmpty(n))return console.error("yungouos sdk error","银行卡姓名不能为空"),null;if(o.isEmpty(u))return console.error("yungouos sdk error","付款金额不能为空"),null;if(o.isEmpty(i))return console.error("yungouos sdk error","付款描述不能为空"),null;if(o.isEmpty(d))return console.error("yungouos sdk error","商户密钥不能为空"),null;var g={merchant_id:r,out_trade_no:e,account:t,account_name:n,money:u,desc:i};o.isEmpty(a)||(g.bank_name=a),o.isEmpty(c)||(g.bank_code=c);var b=m.paySign(g,d);return g.sign=b,o.isEmpty(s)||(g.bank_type=s),o.isEmpty(l)||(g.mch_id=l),o.isEmpty(y)||(g.app_id=y),o.isEmpty(f)||(g.notify_url=f),p.post(q.getRePayBankUrl,g)}},or={nativePay:"https://api.pay.yungouos.com/api/pay/merge/nativePay"};function ur(r,e,t,n,o,u,i){try{var s=r[u](i),a=s.value}catch(r){return void t(r)}s.done?e(a):Promise.resolve(a).then(n,o)}function ir(r){return function(){var e=this,t=arguments;return new Promise((function(n,o){var u=r.apply(e,t);function i(r){ur(u,n,o,i,s,"next",r)}function s(r){ur(u,n,o,i,s,"throw",r)}i(void 0)}))}}function sr(){return(sr=ir(regeneratorRuntime.mark((function r(e,t,n,u,i,s,a,c,l,y,f,d){var g,b,h,E,v;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!o.isEmpty(e)){r.next=3;break}return console.error("yungouos sdk error","商户订单号不能为空"),r.abrupt("return",null);case 3:if(!o.isEmpty(t)){r.next=6;break}return console.error("yungouos sdk error","支付金额不能为空"),r.abrupt("return",null);case 6:if(!o.isEmpty(n)){r.next=9;break}return console.error("yungouos sdk error","商户号不能为空"),r.abrupt("return",null);case 9:if(!o.isEmpty(u)){r.next=12;break}return console.error("yungouos sdk error","商品名称不能为空"),r.abrupt("return",null);case 12:if(!o.isEmpty(d)){r.next=15;break}return console.error("yungouos sdk error","支付密钥不能为空"),r.abrupt("return",null);case 15:return g={out_trade_no:e,total_fee:t,mch_id:n,body:u},b=m.paySign(g,d),g.sign=b,o.isEmpty(i)||(g.type=i),o.isEmpty(s)||(g.attach=s),o.isEmpty(a)||(g.notify_url=a),o.isEmpty(c)||(g.return_url=c),o.isEmpty(l)||(g.auto=l),o.isEmpty(y)||(g.auto_node=y),o.isEmpty(f)||(g.config_no=f),r.next=27,p.post(or.nativePay,g);case 27:if(h=r.sent,E=o.doApiResult(h),!o.isEmpty(E)){r.next=31;break}return r.abrupt("return",null);case 31:if(v=E.data,!o.isEmpty(v)){r.next=35;break}return console.error("yungouos sdk error","API无返回结果"),r.abrupt("return",null);case 35:return r.abrupt("return",v);case 36:case"end":return r.stop()}}),r)})))).apply(this,arguments)}var ar={nativePayAsync:function(r,e,t,n,o,u,i,s,a,c,l,p){return sr.apply(this,arguments)},nativePay:function(r,e,t,n,u,i,s,a,c,l,y,f){if(o.isEmpty(r))return console.error("yungouos sdk error","商户订单号不能为空"),null;if(o.isEmpty(e))return console.error("yungouos sdk error","支付金额不能为空"),null;if(o.isEmpty(t))return console.error("yungouos sdk error","商户号不能为空"),null;if(o.isEmpty(n))return console.error("yungouos sdk error","商品名称不能为空"),null;if(o.isEmpty(f))return console.error("yungouos sdk error","支付密钥不能为空"),null;var d={out_trade_no:r,total_fee:e,mch_id:t,body:n},g=m.paySign(d,f);return d.sign=g,o.isEmpty(u)||(d.type=u),o.isEmpty(i)||(d.attach=i),o.isEmpty(s)||(d.notify_url=s),o.isEmpty(a)||(d.return_url=a),o.isEmpty(c)||(d.auto=c),o.isEmpty(l)||(d.auto_node=l),o.isEmpty(y)||(d.config_no=y),p.post(or.nativePay,d)}},cr={getPayOrderInfoUrl:"https://api.pay.yungouos.com/api/system/order/getPayOrderInfo"};function lr(r,e,t,n,o,u,i){try{var s=r[u](i),a=s.value}catch(r){return void t(r)}s.done?e(a):Promise.resolve(a).then(n,o)}function pr(r){return function(){var e=this,t=arguments;return new Promise((function(n,o){var u=r.apply(e,t);function i(r){lr(u,n,o,i,s,"next",r)}function s(r){lr(u,n,o,i,s,"throw",r)}i(void 0)}))}}function yr(){return(yr=pr(regeneratorRuntime.mark((function r(e,t,n){var u,i,s,a,c;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!o.isEmpty(e)){r.next=3;break}return console.error("yungouos sdk error","商户订单号不能为空"),r.abrupt("return",null);case 3:if(!o.isEmpty(t)){r.next=6;break}return console.error("yungouos sdk error","商户号不能为空"),r.abrupt("return",null);case 6:if(!o.isEmpty(n)){r.next=9;break}return console.error("yungouos sdk error","支付密钥不能为空"),r.abrupt("return",null);case 9:return u={out_trade_no:e,mch_id:t},i=m.paySign(u,n),u.sign=i,r.next=14,p.get(cr.getPayOrderInfoUrl,u);case 14:if(s=r.sent,a=o.doApiResult(s),!o.isEmpty(a)){r.next=18;break}return r.abrupt("return",null);case 18:if(c=a.data,!o.isEmpty(c)){r.next=22;break}return console.error("yungouos sdk error","API无返回结果"),r.abrupt("return",null);case 22:return r.abrupt("return",c);case 23:case"end":return r.stop()}}),r)})))).apply(this,arguments)}var fr={getOrderInfoAsync:function(r,e,t){return yr.apply(this,arguments)},getOrderInfo:function(r,e,t){if(o.isEmpty(r))return console.error("yungouos sdk error","商户订单号不能为空"),null;if(o.isEmpty(e))return console.error("yungouos sdk error","商户号不能为空"),null;if(o.isEmpty(t))return console.error("yungouos sdk error","支付密钥不能为空"),null;var n={out_trade_no:r,mch_id:e},u=m.paySign(n,t);return n.sign=u,p.get(cr.getPayOrderInfoUrl,n)}},dr={getOauthUrl:"https://api.pay.yungouos.com/api/wx/getOauthUrl",getWebLogin:"https://api.pay.yungouos.com/api/wx/getWebLogin",getOauthInfo:"https://api.pay.yungouos.com/api/wx/getOauthInfo"};function mr(r,e,t,n,o,u,i){try{var s=r[u](i),a=s.value}catch(r){return void t(r)}s.done?e(a):Promise.resolve(a).then(n,o)}function gr(r){return function(){var e=this,t=arguments;return new Promise((function(n,o){var u=r.apply(e,t);function i(r){mr(u,n,o,i,s,"next",r)}function s(r){mr(u,n,o,i,s,"throw",r)}i(void 0)}))}}function br(){return(br=gr(regeneratorRuntime.mark((function r(e,t,n,u,i){var s,a,c,l,y;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!o.isEmpty(e)){r.next=3;break}return console.error("yungouos sdk error","mch_id不能为空"),r.abrupt("return",null);case 3:if(!o.isEmpty(t)){r.next=6;break}return console.error("yungouos sdk error","callback_url不能为空"),r.abrupt("return",null);case 6:if(!o.isEmpty(i)){r.next=9;break}return console.error("yungouos sdk error","key不能为空"),r.abrupt("return",null);case 9:return s={mch_id:e,callback_url:t},a=m.paySign(s,i),s.sign=a,o.isEmpty(n)||(s.type=n),o.isEmpty(u)||(s.params=JSON.stringify(u)),r.next=16,p.post(dr.getOauthUrl,s);case 16:if(c=r.sent,l=o.doApiResult(c),!o.isEmpty(l)){r.next=20;break}return r.abrupt("return",null);case 20:if(y=l.data,!o.isEmpty(y)){r.next=24;break}return console.error("yungouos sdk error","API无返回结果"),r.abrupt("return",null);case 24:return r.abrupt("return",y);case 25:case"end":return r.stop()}}),r)})))).apply(this,arguments)}function hr(){return(hr=gr(regeneratorRuntime.mark((function r(e,t,n,u){var i,s,a,c,l;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!o.isEmpty(e)){r.next=3;break}return console.error("yungouos sdk error","mch_id不能为空"),r.abrupt("return",null);case 3:if(!o.isEmpty(t)){r.next=6;break}return console.error("yungouos sdk error","callback_url不能为空"),r.abrupt("return",null);case 6:if(!o.isEmpty(u)){r.next=9;break}return console.error("yungouos sdk error","key不能为空"),r.abrupt("return",null);case 9:return i={mch_id:e,callback_url:t},s=m.paySign(i,u),i.sign=s,o.isEmpty(n)||(i.params=JSON.stringify(n)),r.next=15,p.post(dr.getWebLogin,i);case 15:if(a=r.sent,c=o.doApiResult(a),!o.isEmpty(c)){r.next=19;break}return r.abrupt("return",null);case 19:if(l=c.data,!o.isEmpty(l)){r.next=23;break}return console.error("yungouos sdk error","API无返回结果"),r.abrupt("return",null);case 23:return r.abrupt("return",l);case 24:case"end":return r.stop()}}),r)})))).apply(this,arguments)}function Er(){return(Er=gr(regeneratorRuntime.mark((function r(e,t,n){var u,i,s,a,c;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!o.isEmpty(e)){r.next=3;break}return console.error("yungouos sdk error","mch_id不能为空"),r.abrupt("return",null);case 3:if(!o.isEmpty(t)){r.next=6;break}return console.error("yungouos sdk error","code不能为空"),r.abrupt("return",null);case 6:if(!o.isEmpty(n)){r.next=9;break}return console.error("yungouos sdk error","key不能为空"),r.abrupt("return",null);case 9:return u={mch_id:e,code:t},i=m.paySign(u,n),u.sign=i,r.next=14,p.get(dr.getOauthInfo,u);case 14:if(s=r.sent,a=o.doApiResult(s),!o.isEmpty(a)){r.next=18;break}return r.abrupt("return",null);case 18:if(c=a.data,!o.isEmpty(c)){r.next=22;break}return console.error("yungouos sdk error","API无返回结果"),r.abrupt("return",null);case 22:return r.abrupt("return",c);case 23:case"end":return r.stop()}}),r)})))).apply(this,arguments)}var vr={getOauthUrlAsync:function(r,e,t,n,o){return br.apply(this,arguments)},getOauthUrl:function(r,e,t,n,u){if(o.isEmpty(r))return console.error("yungouos sdk error","mch_id不能为空"),null;if(o.isEmpty(e))return console.error("yungouos sdk error","callback_url不能为空"),null;if(o.isEmpty(u))return console.error("yungouos sdk error","key不能为空"),null;var i={mch_id:r,callback_url:e},s=m.paySign(i,u);return i.sign=s,o.isEmpty(t)||(i.type=t),o.isEmpty(n)||(i.params=JSON.stringify(n)),p.post(dr.getOauthUrl,i)},getWebLoginAsync:function(r,e,t,n){return hr.apply(this,arguments)},getWebLogin:function(r,e,t,n){if(o.isEmpty(r))return console.error("yungouos sdk error","mch_id不能为空"),null;if(o.isEmpty(e))return console.error("yungouos sdk error","callback_url不能为空"),null;if(o.isEmpty(n))return console.error("yungouos sdk error","key不能为空"),null;var u={mch_id:r,callback_url:e},i=m.paySign(u,n);return u.sign=i,o.isEmpty(t)||(u.params=JSON.stringify(t)),p.post(dr.getWebLogin,u)},getOauthInfoAsync:function(r,e,t){return Er.apply(this,arguments)},getOauthInfo:function(r,e,t){if(o.isEmpty(r))return console.error("yungouos sdk error","mch_id不能为空"),null;if(o.isEmpty(e))return console.error("yungouos sdk error","code不能为空"),null;if(o.isEmpty(t))return console.error("yungouos sdk error","key不能为空"),null;var n={mch_id:r,code:e},u=m.paySign(n,t);return n.sign=u,p.get(dr.getOauthInfo,n)}},kr={getCreateUrl:"https://api.pay.yungouos.com/api/pay/black/create",getCheckUrl:"https://api.pay.yungouos.com/api/pay/black/check"};function xr(r,e,t,n,o,u,i){try{var s=r[u](i),a=s.value}catch(r){return void t(r)}s.done?e(a):Promise.resolve(a).then(n,o)}function _r(r){return function(){var e=this,t=arguments;return new Promise((function(n,o){var u=r.apply(e,t);function i(r){xr(u,n,o,i,s,"next",r)}function s(r){xr(u,n,o,i,s,"throw",r)}i(void 0)}))}}function wr(){return(wr=_r(regeneratorRuntime.mark((function r(e,t,n,u,i){var s,a,c,l,y;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!o.isEmpty(e)){r.next=3;break}return console.error("yungouos sdk error","商户号不能为空"),r.abrupt("return",null);case 3:if(!o.isEmpty(t)){r.next=6;break}return console.error("yungouos sdk error","用户账户不能为空"),r.abrupt("return",null);case 6:if(!o.isEmpty(i)){r.next=9;break}return console.error("yungouos sdk error","支付密钥不能为空"),r.abrupt("return",null);case 9:return s={mch_id:e,account:t},a=m.paySign(s,i),s.sign=a,o.isEmpty(n)||(s.reason=n),o.isEmpty(u)||(s.end_time=u),r.next=16,p.post(kr.getCreateUrl,s);case 16:if(c=r.sent,l=o.doApiResult(c),!o.isEmpty(l)){r.next=20;break}return r.abrupt("return",null);case 20:if(y=l.data,!o.isEmpty(y)){r.next=24;break}return console.error("yungouos sdk error","API无返回结果"),r.abrupt("return",null);case 24:return r.abrupt("return",y);case 25:case"end":return r.stop()}}),r)})))).apply(this,arguments)}function Sr(){return(Sr=_r(regeneratorRuntime.mark((function r(e,t,n){var u,i,s,a,c;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!o.isEmpty(e)){r.next=3;break}return console.error("yungouos sdk error","商户号不能为空"),r.abrupt("return",null);case 3:if(!o.isEmpty(t)){r.next=6;break}return console.error("yungouos sdk error","用户账户不能为空"),r.abrupt("return",null);case 6:if(!o.isEmpty(n)){r.next=9;break}return console.error("yungouos sdk error","支付密钥不能为空"),r.abrupt("return",null);case 9:return u={mch_id:e,account:t},i=m.paySign(u,n),u.sign=i,r.next=14,p.get(kr.getCheckUrl,u);case 14:if(s=r.sent,a=o.doApiResult(s),!o.isEmpty(a)){r.next=18;break}return r.abrupt("return",null);case 18:if(c=a.data,!o.isEmpty(c)){r.next=22;break}return console.error("yungouos sdk error","API无返回结果"),r.abrupt("return",null);case 22:return r.abrupt("return",c);case 23:case"end":return r.stop()}}),r)})))).apply(this,arguments)}var Pr={createAsync:function(r,e,t,n,o){return wr.apply(this,arguments)},create:function(r,e,t,n,u){if(o.isEmpty(r))return console.error("yungouos sdk error","商户号不能为空"),null;if(o.isEmpty(e))return console.error("yungouos sdk error","用户账户不能为空"),null;if(o.isEmpty(u))return console.error("yungouos sdk error","支付密钥不能为空"),null;var i={mch_id:r,account:e},s=m.paySign(i,u);return i.sign=s,o.isEmpty(t)||(i.reason=t),o.isEmpty(n)||(i.end_time=n),p.post(kr.getCreateUrl,i)},checkAsync:function(r,e,t){return Sr.apply(this,arguments)},check:function(r,e,t){if(o.isEmpty(r))return console.error("yungouos sdk error","商户号不能为空"),null;if(o.isEmpty(e))return console.error("yungouos sdk error","用户账户不能为空"),null;if(o.isEmpty(t))return console.error("yungouos sdk error","支付密钥不能为空"),null;var n={mch_id:r,account:e},u=m.paySign(n,t);return n.sign=u,p.get(kr.getCheckUrl,n)}}}])}));