@bpui/dialog
Advanced tools
Comparing version 0.1.21 to 0.1.22
/*! | ||
* bpui dialog v0.1.21 | ||
* bpui dialog v0.1.22 | ||
* Copyright (c) 2020 Copyright bpoint.lee@live.com All Rights Reserved. | ||
* Released under the MIT License. | ||
*/ | ||
"use strict";function t(t){return t&&"object"==typeof t&&"default"in t?t.default:t}var e=t(require("@bpui/libs")),n=require("febs-browser"),i=t(require("vue"));function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function s(t,e){if(t!==e)throw new TypeError("Cannot instantiate an arrow function")}var c="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function l(t,e){return t(e={exports:{}},e.exports),e.exports}var u=function(t){return t&&t.Math==Math&&t},d=u("object"==typeof globalThis&&globalThis)||u("object"==typeof window&&window)||u("object"==typeof self&&self)||u("object"==typeof c&&c)||Function("return this")(),f=function(t){try{return!!t()}catch(t){return!0}},h=!f((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),p=function(t){return"object"==typeof t?null!==t:"function"==typeof t},v=d.document,g=p(v)&&p(v.createElement),b=function(t){return g?v.createElement(t):{}},m=!h&&!f((function(){return 7!=Object.defineProperty(b("div"),"a",{get:function(){return 7}}).a})),w=function(t){if(!p(t))throw TypeError(String(t)+" is not an object");return t},_=function(t,e){if(!p(t))return t;var n,i;if(e&&"function"==typeof(n=t.toString)&&!p(i=n.call(t)))return i;if("function"==typeof(n=t.valueOf)&&!p(i=n.call(t)))return i;if(!e&&"function"==typeof(n=t.toString)&&!p(i=n.call(t)))return i;throw TypeError("Can't convert object to primitive value")},y=Object.defineProperty,x={f:h?y:function(t,e,n){if(w(t),e=_(e,!0),w(n),m)try{return y(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},C=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},E=h?function(t,e,n){return x.f(t,e,C(1,n))}:function(t,e,n){return t[e]=n,t},S=function(t,e){try{E(d,t,e)}catch(n){d[t]=e}return e},O=d["__core-js_shared__"]||S("__core-js_shared__",{}),k=l((function(t){(t.exports=function(t,e){return O[t]||(O[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.5",mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),j={}.hasOwnProperty,T=function(t,e){return j.call(t,e)},I=0,A=Math.random(),P=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++I+A).toString(36)},R=!!Object.getOwnPropertySymbols&&!f((function(){return!String(Symbol())})),N=R&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,M=k("wks"),F=d.Symbol,L=N?F:F&&F.withoutSetter||P,z=function(t){return T(M,t)||(R&&T(F,t)?M[t]=F[t]:M[t]=L("Symbol."+t)),M[t]},B={};B[z("toStringTag")]="z";var D="[object z]"===String(B),V=Function.toString;"function"!=typeof O.inspectSource&&(O.inspectSource=function(t){return V.call(t)});var W,U,G,X=O.inspectSource,q=d.WeakMap,H="function"==typeof q&&/native code/.test(X(q)),K=k("keys"),Y=function(t){return K[t]||(K[t]=P(t))},J={},Q=d.WeakMap;if(H){var Z=new Q,tt=Z.get,et=Z.has,nt=Z.set;W=function(t,e){return nt.call(Z,t,e),e},U=function(t){return tt.call(Z,t)||{}},G=function(t){return et.call(Z,t)}}else{var it=Y("state");J[it]=!0,W=function(t,e){return E(t,it,e),e},U=function(t){return T(t,it)?t[it]:{}},G=function(t){return T(t,it)}}var rt={set:W,get:U,has:G,enforce:function(t){return G(t)?U(t):W(t,{})},getterFor:function(t){return function(e){var n;if(!p(e)||(n=U(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}},ot=l((function(t){var e=rt.get,n=rt.enforce,i=String(String).split("String");(t.exports=function(t,e,r,o){var a=!!o&&!!o.unsafe,s=!!o&&!!o.enumerable,c=!!o&&!!o.noTargetGet;"function"==typeof r&&("string"!=typeof e||T(r,"name")||E(r,"name",e),n(r).source=i.join("string"==typeof e?e:"")),t!==d?(a?!c&&t[e]&&(s=!0):delete t[e],s?t[e]=r:E(t,e,r)):s?t[e]=r:S(e,r)})(Function.prototype,"toString",(function(){return"function"==typeof this&&e(this).source||X(this)}))})),at={}.toString,st=function(t){return at.call(t).slice(8,-1)},ct=z("toStringTag"),lt="Arguments"==st(function(){return arguments}()),ut=D?st:function(t){var e,n,i;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),ct))?n:lt?st(e):"Object"==(i=st(e))&&"function"==typeof e.callee?"Arguments":i},dt=D?{}.toString:function(){return"[object "+ut(this)+"]"};D||ot(Object.prototype,"toString",dt,{unsafe:!0});var ft=function(){var t=w(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},ht=RegExp.prototype,pt=ht.toString,vt=f((function(){return"/a/b"!=pt.call({source:"a",flags:"b"})})),gt="toString"!=pt.name;(vt||gt)&&ot(RegExp.prototype,"toString",(function(){var t=w(this),e=String(t.source),n=t.flags;return"/"+e+"/"+String(void 0===n&&t instanceof RegExp&&!("flags"in ht)?ft.call(t):n)}),{unsafe:!0});var bt={}.propertyIsEnumerable,mt=Object.getOwnPropertyDescriptor,wt={f:mt&&!bt.call({1:2},1)?function(t){var e=mt(this,t);return!!e&&e.enumerable}:bt},_t="".split,yt=f((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==st(t)?_t.call(t,""):Object(t)}:Object,xt=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},Ct=function(t){return yt(xt(t))},$t=Object.getOwnPropertyDescriptor,Et={f:h?$t:function(t,e){if(t=Ct(t),e=_(e,!0),m)try{return $t(t,e)}catch(t){}if(T(t,e))return C(!wt.f.call(t,e),t[e])}},St=d,Ot=function(t){return"function"==typeof t?t:void 0},kt=function(t,e){return arguments.length<2?Ot(St[t])||Ot(d[t]):St[t]&&St[t][e]||d[t]&&d[t][e]},jt=Math.ceil,Tt=Math.floor,It=function(t){return isNaN(t=+t)?0:(t>0?Tt:jt)(t)},At=Math.min,Pt=function(t){return t>0?At(It(t),9007199254740991):0},Rt=Math.max,Nt=Math.min,Mt=function(t,e){var n=It(t);return n<0?Rt(n+e,0):Nt(n,e)},Ft=function(t){return function(e,n,i){var r,o=Ct(e),a=Pt(o.length),s=Mt(i,a);if(t&&n!=n){for(;a>s;)if((r=o[s++])!=r)return!0}else for(;a>s;s++)if((t||s in o)&&o[s]===n)return t||s||0;return!t&&-1}},Lt={includes:Ft(!0),indexOf:Ft(!1)},zt=Lt.indexOf,Bt=function(t,e){var n,i=Ct(t),r=0,o=[];for(n in i)!T(J,n)&&T(i,n)&&o.push(n);for(;e.length>r;)T(i,n=e[r++])&&(~zt(o,n)||o.push(n));return o},Dt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Vt=Dt.concat("length","prototype"),Wt={f:Object.getOwnPropertyNames||function(t){return Bt(t,Vt)}},Ut={f:Object.getOwnPropertySymbols},Gt=kt("Reflect","ownKeys")||function(t){var e=Wt.f(w(t)),n=Ut.f;return n?e.concat(n(t)):e},Xt=function(t,e){for(var n=Gt(e),i=x.f,r=Et.f,o=0;o<n.length;o++){var a=n[o];T(t,a)||i(t,a,r(e,a))}},qt=/#|\.prototype\./,Ht=function(t,e){var n=Yt[Kt(t)];return n==Qt||n!=Jt&&("function"==typeof e?f(e):!!e)},Kt=Ht.normalize=function(t){return String(t).replace(qt,".").toLowerCase()},Yt=Ht.data={},Jt=Ht.NATIVE="N",Qt=Ht.POLYFILL="P",Zt=Ht,te=Et.f,ee=function(t,e){var n,i,r,o,a,s=t.target,c=t.global,l=t.stat;if(n=c?d:l?d[s]||S(s,{}):(d[s]||{}).prototype)for(i in e){if(o=e[i],r=t.noTargetGet?(a=te(n,i))&&a.value:n[i],!Zt(c?i:s+(l?".":"#")+i,t.forced)&&void 0!==r){if(typeof o==typeof r)continue;Xt(o,r)}(t.sham||r&&r.sham)&&E(o,"sham",!0),ot(n,i,o,t)}},ne=function(t,e){var n=[][t];return!!n&&f((function(){n.call(null,e||function(){throw 1},1)}))},ie=Object.defineProperty,re={},oe=function(t){throw t},ae=function(t,e){if(T(re,t))return re[t];e||(e={});var n=[][t],i=!!T(e,"ACCESSORS")&&e.ACCESSORS,r=T(e,0)?e[0]:oe,o=T(e,1)?e[1]:void 0;return re[t]=!!n&&!f((function(){if(i&&!h)return!0;var t={length:-1};i?ie(t,1,{enumerable:!0,get:oe}):t[1]=1,n.call(t,r,o)}))},se=Lt.indexOf,ce=[].indexOf,le=!!ce&&1/[1].indexOf(1,-0)<0,ue=ne("indexOf"),de=ae("indexOf",{ACCESSORS:!0,1:0});ee({target:"Array",proto:!0,forced:le||!ue||!de},{indexOf:function(t){return le?ce.apply(this,arguments)||0:se(this,t,arguments.length>1?arguments[1]:void 0)}});var fe=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t},he=function(t){return Object(xt(t))},pe=[],ve=pe.sort,ge=f((function(){pe.sort(void 0)})),be=f((function(){pe.sort(null)})),me=ne("sort");ee({target:"Array",proto:!0,forced:ge||!be||!me},{sort:function(t){return void 0===t?ve.call(he(this)):ve.call(he(this),fe(t))}});var we,_e=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),e=n instanceof Array}catch(t){}return function(n,i){return w(n),function(t){if(!p(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype")}(i),e?t.call(n,i):n.__proto__=i,n}}():void 0),ye=function(t,e,n){var i,r;return _e&&"function"==typeof(i=e.constructor)&&i!==n&&p(r=i.prototype)&&r!==n.prototype&&_e(t,r),t},xe=Object.keys||function(t){return Bt(t,Dt)},Ce=h?Object.defineProperties:function(t,e){w(t);for(var n,i=xe(e),r=i.length,o=0;r>o;)x.f(t,n=i[o++],e[n]);return t},$e=kt("document","documentElement"),Ee=Y("IE_PROTO"),Se=function(){},Oe=function(t){return"<script>"+t+"<\/script>"},ke=function(){try{we=document.domain&&new ActiveXObject("htmlfile")}catch(t){}var t,e;ke=we?function(t){t.write(Oe("")),t.close();var e=t.parentWindow.Object;return t=null,e}(we):((e=b("iframe")).style.display="none",$e.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(Oe("document.F=Object")),t.close(),t.F);for(var n=Dt.length;n--;)delete ke.prototype[Dt[n]];return ke()};J[Ee]=!0;var je=Object.create||function(t,e){var n;return null!==t?(Se.prototype=w(t),n=new Se,Se.prototype=null,n[Ee]=t):n=ke(),void 0===e?n:Ce(n,e)},Te="\t\n\v\f\r \u2028\u2029\ufeff",Ie="["+Te+"]",Ae=RegExp("^"+Ie+Ie+"*"),Pe=RegExp(Ie+Ie+"*$"),Re=function(t){return function(e){var n=String(xt(e));return 1&t&&(n=n.replace(Ae,"")),2&t&&(n=n.replace(Pe,"")),n}},Ne={start:Re(1),end:Re(2),trim:Re(3)},Me=Wt.f,Fe=Et.f,Le=x.f,ze=Ne.trim,Be=d.Number,De=Be.prototype,Ve="Number"==st(je(De)),We=function(t){var e,n,i,r,o,a,s,c,l=_(t,!1);if("string"==typeof l&&l.length>2)if(43===(e=(l=ze(l)).charCodeAt(0))||45===e){if(88===(n=l.charCodeAt(2))||120===n)return NaN}else if(48===e){switch(l.charCodeAt(1)){case 66:case 98:i=2,r=49;break;case 79:case 111:i=8,r=55;break;default:return+l}for(a=(o=l.slice(2)).length,s=0;s<a;s++)if((c=o.charCodeAt(s))<48||c>r)return NaN;return parseInt(o,i)}return+l};if(Zt("Number",!Be(" 0o1")||!Be("0b1")||Be("+0x1"))){for(var Ue,Ge=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof Ge&&(Ve?f((function(){De.valueOf.call(n)})):"Number"!=st(n))?ye(new Be(We(e)),n,Ge):We(e)},Xe=h?Me(Be):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),qe=0;Xe.length>qe;qe++)T(Be,Ue=Xe[qe])&&!T(Ge,Ue)&&Le(Ge,Ue,Fe(Be,Ue));Ge.prototype=De,De.constructor=Ge,ot(d,"Number",Ge)}function He(t,e){return RegExp(t,e)}var Ke,Ye,Je={UNSUPPORTED_Y:f((function(){var t=He("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),BROKEN_CARET:f((function(){var t=He("^r","gy");return t.lastIndex=2,null!=t.exec("str")}))},Qe=RegExp.prototype.exec,Ze=String.prototype.replace,tn=Qe,en=(Ke=/a/,Ye=/b*/g,Qe.call(Ke,"a"),Qe.call(Ye,"a"),0!==Ke.lastIndex||0!==Ye.lastIndex),nn=Je.UNSUPPORTED_Y||Je.BROKEN_CARET,rn=void 0!==/()??/.exec("")[1];(en||rn||nn)&&(tn=function(t){var e,n,i,r,o=this,a=nn&&o.sticky,s=ft.call(o),c=o.source,l=0,u=t;return a&&(-1===(s=s.replace("y","")).indexOf("g")&&(s+="g"),u=String(t).slice(o.lastIndex),o.lastIndex>0&&(!o.multiline||o.multiline&&"\n"!==t[o.lastIndex-1])&&(c="(?: "+c+")",u=" "+u,l++),n=new RegExp("^(?:"+c+")",s)),rn&&(n=new RegExp("^"+c+"$(?!\\s)",s)),en&&(e=o.lastIndex),i=Qe.call(a?n:o,u),a?i?(i.input=i.input.slice(l),i[0]=i[0].slice(l),i.index=o.lastIndex,o.lastIndex+=i[0].length):o.lastIndex=0:en&&i&&(o.lastIndex=o.global?i.index+i[0].length:e),rn&&i&&i.length>1&&Ze.call(i[0],n,(function(){for(r=1;r<arguments.length-2;r++)void 0===arguments[r]&&(i[r]=void 0)})),i});var on=tn;ee({target:"RegExp",proto:!0,forced:/./.exec!==on},{exec:on});var an=z("species"),sn=!f((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),cn="$0"==="a".replace(/./,"$0"),ln=z("replace"),un=!!/./[ln]&&""===/./[ln]("a","$0"),dn=!f((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),fn=function(t,e,n,i){var r=z(t),o=!f((function(){var e={};return e[r]=function(){return 7},7!=""[t](e)})),a=o&&!f((function(){var e=!1,n=/a/;return"split"===t&&((n={}).constructor={},n.constructor[an]=function(){return n},n.flags="",n[r]=/./[r]),n.exec=function(){return e=!0,null},n[r](""),!e}));if(!o||!a||"replace"===t&&(!sn||!cn||un)||"split"===t&&!dn){var s=/./[r],c=n(r,""[t],(function(t,e,n,i,r){return e.exec===on?o&&!r?{done:!0,value:s.call(e,n,i)}:{done:!0,value:t.call(n,e,i)}:{done:!1}}),{REPLACE_KEEPS_$0:cn,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:un}),l=c[0],u=c[1];ot(String.prototype,t,l),ot(RegExp.prototype,r,2==e?function(t,e){return u.call(t,this,e)}:function(t){return u.call(t,this)})}i&&E(RegExp.prototype[r],"sham",!0)},hn=function(t){return function(e,n){var i,r,o=String(xt(e)),a=It(n),s=o.length;return a<0||a>=s?t?"":void 0:(i=o.charCodeAt(a))<55296||i>56319||a+1===s||(r=o.charCodeAt(a+1))<56320||r>57343?t?o.charAt(a):i:t?o.slice(a,a+2):r-56320+(i-55296<<10)+65536}},pn={codeAt:hn(!1),charAt:hn(!0)}.charAt,vn=function(t,e,n){return e+(n?pn(t,e).length:1)},gn=function(t,e){var n=t.exec;if("function"==typeof n){var i=n.call(t,e);if("object"!=typeof i)throw TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==st(t))throw TypeError("RegExp#exec called on incompatible receiver");return on.call(t,e)},bn=Math.max,mn=Math.min,wn=Math.floor,_n=/\$([$&'`]|\d\d?|<[^>]*>)/g,yn=/\$([$&'`]|\d\d?)/g;fn("replace",2,(function(t,e,n,i){var r=i.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,o=i.REPLACE_KEEPS_$0,a=r?"$":"$0";return[function(n,i){var r=xt(this),o=null==n?void 0:n[t];return void 0!==o?o.call(n,r,i):e.call(String(r),n,i)},function(t,i){if(!r&&o||"string"==typeof i&&-1===i.indexOf(a)){var c=n(e,t,this,i);if(c.done)return c.value}var l=w(t),u=String(this),d="function"==typeof i;d||(i=String(i));var f=l.global;if(f){var h=l.unicode;l.lastIndex=0}for(var p=[];;){var v=gn(l,u);if(null===v)break;if(p.push(v),!f)break;""===String(v[0])&&(l.lastIndex=vn(u,Pt(l.lastIndex),h))}for(var g,b="",m=0,_=0;_<p.length;_++){v=p[_];for(var y=String(v[0]),x=bn(mn(It(v.index),u.length),0),C=[],$=1;$<v.length;$++)C.push(void 0===(g=v[$])?g:String(g));var E=v.groups;if(d){var S=[y].concat(C,x,u);void 0!==E&&S.push(E);var O=String(i.apply(void 0,S))}else O=s(y,u,x,C,E,i);x>=m&&(b+=u.slice(m,x)+O,m=x+y.length)}return b+u.slice(m)}];function s(t,n,i,r,o,a){var s=i+t.length,c=r.length,l=yn;return void 0!==o&&(o=he(o),l=_n),e.call(a,l,(function(e,a){var l;switch(a.charAt(0)){case"$":return"$";case"&":return t;case"`":return n.slice(0,i);case"'":return n.slice(s);case"<":l=o[a.slice(1,-1)];break;default:var u=+a;if(0===u)return e;if(u>c){var d=wn(u/10);return 0===d?e:d<=c?void 0===r[d-1]?a.charAt(1):r[d-1]+a.charAt(1):e}l=r[u-1]}return void 0===l?"":l}))}}));var xn=z("match"),Cn=z("species"),$n=function(t,e){var n,i=w(t).constructor;return void 0===i||null==(n=w(i)[Cn])?e:fe(n)},En=[].push,Sn=Math.min,On=!f((function(){return!RegExp(4294967295,"y")}));fn("split",2,(function(t,e,n){var i;return i="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,n){var i,r,o=String(xt(this)),a=void 0===n?4294967295:n>>>0;if(0===a)return[];if(void 0===t)return[o];if(!p(i=t)||!(void 0!==(r=i[xn])?r:"RegExp"==st(i)))return e.call(o,t,a);for(var s,c,l,u=[],d=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),f=0,h=new RegExp(t.source,d+"g");(s=on.call(h,o))&&!((c=h.lastIndex)>f&&(u.push(o.slice(f,s.index)),s.length>1&&s.index<o.length&&En.apply(u,s.slice(1)),l=s[0].length,f=c,u.length>=a));)h.lastIndex===s.index&&h.lastIndex++;return f===o.length?!l&&h.test("")||u.push(""):u.push(o.slice(f)),u.length>a?u.slice(0,a):u}:"0".split(void 0,0).length?function(t,n){return void 0===t&&0===n?[]:e.call(this,t,n)}:e,[function(e,n){var r=xt(this),o=null==e?void 0:e[t];return void 0!==o?o.call(e,r,n):i.call(String(r),e,n)},function(t,r){var o=n(i,t,this,r,i!==e);if(o.done)return o.value;var a=w(t),s=String(this),c=$n(a,RegExp),l=a.unicode,u=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(On?"y":"g"),d=new c(On?a:"^(?:"+a.source+")",u),f=void 0===r?4294967295:r>>>0;if(0===f)return[];if(0===s.length)return null===gn(d,s)?[s]:[];for(var h=0,p=0,v=[];p<s.length;){d.lastIndex=On?p:0;var g,b=gn(d,On?s:s.slice(p));if(null===b||(g=Sn(Pt(d.lastIndex+(On?0:p)),s.length))===h)p=vn(s,p,l);else{if(v.push(s.slice(h,p)),v.length===f)return v;for(var m=1;m<=b.length-1;m++)if(v.push(b[m]),v.length===f)return v;p=h=g}}return v.push(s.slice(h)),v}]}),!On);var kn,jn=Ne.trim;ee({target:"String",proto:!0,forced:(kn="trim",f((function(){return!!Te[kn]()||" "!=" "[kn]()||Te[kn].name!==kn})))},{trim:function(){return jn(this)}});var Tn,In,An=Array.isArray||function(t){return"Array"==st(t)},Pn=z("species"),Rn=function(t,e){var n;return An(t)&&("function"!=typeof(n=t.constructor)||n!==Array&&!An(n.prototype)?p(n)&&null===(n=n[Pn])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===e?0:e)},Nn=function(t,e,n){var i=_(e);i in t?x.f(t,i,C(0,n)):t[i]=n},Mn=kt("navigator","userAgent")||"",Fn=d.process,Ln=Fn&&Fn.versions,zn=Ln&&Ln.v8;zn?In=(Tn=zn.split("."))[0]+Tn[1]:Mn&&(!(Tn=Mn.match(/Edge\/(\d+)/))||Tn[1]>=74)&&(Tn=Mn.match(/Chrome\/(\d+)/))&&(In=Tn[1]);var Bn=In&&+In,Dn=z("species"),Vn=function(t){return Bn>=51||!f((function(){var e=[];return(e.constructor={})[Dn]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},Wn=Vn("splice"),Un=ae("splice",{ACCESSORS:!0,0:0,1:2}),Gn=Math.max,Xn=Math.min;ee({target:"Array",proto:!0,forced:!Wn||!Un},{splice:function(t,e){var n,i,r,o,a,s,c=he(this),l=Pt(c.length),u=Mt(t,l),d=arguments.length;if(0===d?n=i=0:1===d?(n=0,i=l-u):(n=d-2,i=Xn(Gn(It(e),0),l-u)),l+n-i>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(r=Rn(c,i),o=0;o<i;o++)(a=u+o)in c&&Nn(r,o,c[a]);if(r.length=i,n<i){for(o=u;o<l-i;o++)s=o+n,(a=o+i)in c?c[s]=c[a]:delete c[s];for(o=l;o>l-i+n;o--)delete c[o-1]}else if(n>i)for(o=l-i;o>u;o--)s=o+n-1,(a=o+i-1)in c?c[s]=c[a]:delete c[s];for(o=0;o<n;o++)c[o+u]=arguments[o+2];return c.length=l-i+n,r}});function qn(t){var e=window.$BpGlobalWidgetHook;if(e)for(var n=0;n<e.length;n++)e[n]&&e[n](t)}var Hn=Object.freeze({__proto__:null,addWidgetShake:function(t){window.$BpGlobalWidgetHook||(window.$BpGlobalWidgetHook=[]);var e=window.$BpGlobalWidgetHook;e.indexOf(t)<0&&e.push(t)},removeWidgetShake:function(t){var e=window.$BpGlobalWidgetHook;e&&e.indexOf(t)>=0&&e.splice(0,1)},callWidgetShake:qn});function Kn(t){var e=window.getComputedStyle(t,null);return e=(e=e?e["transition-duration"]:"0.1s").split(",")[0],e=n.string.trim(e),e=n.string.replace(e,"s",""),e=parseFloat(e),e=Math.ceil(1e3*e)||100}function Yn(t){return"touchmove"==t.type||"mousewheel"==t.type||t.preventDefault(),!1}function Jn(t){t.hasClass("bp-widget__bodyFixscroll")&&$("body").addClass("bp-widget__fixscroll");var e=t.attr("data-htmlp");if(e.length>0){var i=n.string.replace(e,"px","");qn(i=parseInt(i)||0),$("html").css("padding-right",e)}}function Qn(t,i,r,o,a){var c,l=this,u=$(t);if(r&&((c=u)&&!n.dom.isDom(c)&&(c=c[0]),c&&(n.utils.browserIsMobile()?(n.dom.removeEventListener(c,"touchmove",Yn),n.dom.addEventListener(c,"touchmove",Yn),n.dom.removeEventListener(c,"touchup",Yn),n.dom.addEventListener(c,"touchup",Yn),n.dom.removeEventListener(c,"touchdown",Yn),n.dom.addEventListener(c,"touchdown",Yn)):(n.dom.removeEventListener(c,"mousewheel",Yn),n.dom.addEventListener(c,"mousewheel",Yn),n.dom.removeEventListener(c,"mouseover",Yn),n.dom.addEventListener(c,"mouseover",Yn)),n.dom.removeEventListener(c,"click",Yn),n.dom.addEventListener(c,"click",Yn))),u.hasClass("bp-widget__visible"))a&&a();else{!function(t){navigator.userAgent.toLowerCase().indexOf("baidu")>=0&&t.css("backdrop-filter","none")}(u);var d=!1,f=$("body"),h=$("html");if(o){var p=!1,v=0;(i||r)&&(n.utils.browserIsMobile()?n.dom.getDocumentPort().height>n.dom.getViewPort().height&&(p=!0):(v=window.innerWidth-n.dom.getViewPort().width)>0&&(p=!0)),p?(f.addClass("bp-widget__fixscroll"),v>0&&(qn(v),h.css("padding-right",v+"px")),d=!0,u.addClass("bp-widget__willFix")):d=f.hasClass("bp-widget__fixscroll")}d?navigator.userAgent.indexOf("Firefox")>=0&&u.css("overflow-y","scroll"):navigator.userAgent.indexOf("Firefox")>=0&&u.css("overflow-y","");var g="page"+$(".bp-navbarView_page").length,b=function(t){for(var e=2e3,n=$(".bp-widget[data-mark='".concat(t,"']")),i=0;i<n.length;i++){var r=Number($(n[i]).css("z-index"))||0;r>e&&(e=r)}return e}(g)+2;u.css("z-index",b),f.hasClass("bp-widget__fixscroll")&&u.addClass("bp-widget__bodyFixscroll");var m=h.css("padding-right");m.length>0&&u.attr("data-htmlp",m);for(var w,_=[],y=$(".bp-widget[data-mark='".concat(g,"']")),x=0;x<y.length;x++){var C=$(y[x]),E=Number(C.css("z-index"))||0;_.push({zIndex:E,el:C})}if(i){_.sort(function(t,e){return s(this,l),t.zIndex==e.zIndex?0:t.zIndex>e.zIndex?1:-1}.bind(this));for(var S=_.length-1;S>=0;S--){var O=_[S].el;if(O.hasClass("bp-widget__mask")&&!u[0].isEqualNode(O[0])){w=O;break}}}e.dom.probeDom(200,function(){return s(this,l),0==window.innerWidth-n.dom.getViewPort().width}.bind(this),function(){var t=this;s(this,l),n.utils.sleep(0).then(function(){s(this,t),u.attr("data-mark",g),u.addClass("bp-widget__invisible"),u.removeClass("bp-widget__maskTmp"),i&&(w||u.addClass("bp-widget__mask")),u.css("display","inherit")}.bind(this)).then(function(){return s(this,t),n.utils.sleep(10)}.bind(this)).then(function(){if(s(this,t),!u.hasClass("bp-widget__closing")){var e=Kn(u[0])||100;return u.removeClass("bp-widget__invisible").addClass("bp-widget__visible"),e}a&&a()}.bind(this)).then(function(e){return s(this,t),n.utils.sleep(e)}.bind(this)).then(function(){s(this,t),u.hasClass("bp-widget__closing")||(i&&w?u.addClass("bp-widget__mask").addClass("bp-widget__maskNoAminate"):i&&u.addClass("bp-widget__mask"),w&&w.removeClass("bp-widget__mask").addClass("bp-widget__maskTmp").addClass("bp-widget__maskNoAminate")),a&&a()}.bind(this))}.bind(this))}}function Zn(t){var e=this,n="page"+$(".bp-navbarView_page").length,i=$("".concat(t||".bp-apiClass"));if(i.length>0){i.remove();for(var r=[],o=$(".bp-widget[data-mark='".concat(n,"']")),a=0;a<o.length;a++){var c=$(o[a]),l=Number(c.css("z-index"))||0;r.push({zIndex:l,el:c})}r.sort(function(t,n){return s(this,e),t.zIndex==n.zIndex?0:t.zIndex>n.zIndex?-1:1}.bind(this));for(var u=0;u<r.length;u++){var d=r[u].el;if(d.hasClass("bp-widget__mask"))return;if(d.hasClass("bp-widget__maskTmp"))return void d.removeClass("bp-widget__maskTmp").addClass("bp-widget__mask").removeClass("bp-widget__maskNoAminate")}!function(){$("body").removeClass("bp-widget__fixscroll");var t=$("html").css("padding-right");t&&t.length>0&&(qn(0),$("html").css("padding-right",""))}()}}function ti(t,e){var n=this,i=$(t);if(i.hasClass("bp-widget__invisible"))e&&e();else if(i.hasClass("bp-widget__closing"))e&&e();else{i.addClass("bp-widget__closing");for(var r,o,a="page"+$(".bp-navbarView_page").length,c=Number(i.css("z-index")),l=i.hasClass("bp-widget__mask"),u=i.hasClass("bp-widget__maskTmp"),d=i.hasClass("bp-widget__willFix"),f=[],h=$(".bp-widget[data-mark='".concat(a,"']")),p=0;p<h.length;p++){var v=$(h[p]),g=Number(v.css("z-index"))||0;f.push({zIndex:g,el:v})}if(f.sort(function(t,e){return s(this,n),t.zIndex==e.zIndex?0:t.zIndex>e.zIndex?-1:1}.bind(this)),!u&&l)for(var b=0;b<f.length;b++){var m=f[b].el;if(Number(m.css("z-index"))<c&&(o||(o=m),m.hasClass("bp-widget__maskTmp"))){r=m;break}}i.attr("data-mark",""),i.removeClass("bp-widget__visible").addClass("bp-widget__invisible");var w=Kn(i[0])||100;r&&r.removeClass("bp-widget__maskTmp").addClass("bp-widget__mask"),setTimeout((function(){i.css("display","none"),i.removeClass("bp-widget__mask").removeClass("bp-widget__closing").removeClass("bp-widget__maskNoAminate"),r&&r.removeClass("bp-widget__maskNoAminate"),e&&e(),d&&(o?function(t){t.hasClass("bp-widget__bodyFixscroll")||$("body").removeClass("bp-widget__fixscroll"),t.attr("data-htmlp").length<=0&&(qn(0),$("html").css("padding-right",""))}(o):($("body").removeClass("bp-widget__fixscroll"),qn(0),$("html").css("padding-right","")))}),w+10)}}function ei(t){window.$BpGlobalDialogComponents=n.utils.mergeMap(t)}function ni(){return window.$BpGlobalDialogComponents}function ii(t){var e=this;t?t.vm.hide().then(function(n){s(this,e),$(".".concat(t.id)).remove()}.bind(this)):Zn(".bp-alertClass")}var ri=ii,oi=ii;var ai=Object.freeze({__proto__:null,hideDialog:ii,hideAlert:ri,hideConfirm:oi,showAlert:function(t){var e=this,r=ni().alert;if(!r)throw new Error("dialog alert component is null");"string"!=typeof t&&"number"!=typeof t||(t={content:t.toString()}),t.title=t.title||"",t=n.utils.mergeMap(r.data(),t);var o=n.utils.mergeMap(r,{data:function(){return s(this,e),t}.bind(this)}),a="c"+n.crypt.uuid();$('<div id="'.concat(a,'"></div>')).appendTo($("body"));var c=new i({render:function(n){var i=this;return s(this,e),n(o,{class:["bp-apiClass","bp-alertClass",a],on:{confirm:function(){var e=this;s(this,i),t.confirm?t.confirm({vm:c.$children[0].$children[0],id:a}):c.$children[0].$children[0].hide().then(function(t){s(this,e),$(".".concat(a)).remove()}.bind(this))}.bind(this)}})}.bind(this)}).$mount("#".concat(a));return c.$children[0].$children[0].show().then(function(t){s(this,e)}.bind(this)),{vm:c.$children[0].$children[0],id:a}},showConfirm:function(t){var e=this,r=ni().confirm;if(!r)throw new Error("dialog confirm component is null");"string"==typeof t&&(t={content:t}),t.title=t.title||"",t=n.utils.mergeMap(r.data(),t);var o=n.utils.mergeMap(r,{data:function(){return s(this,e),t}.bind(this)}),a="c"+n.crypt.uuid();$('<div id="'.concat(a,'"></div>')).appendTo($("body"));var c=new i({render:function(n){var i=this;return s(this,e),n(o,{class:["bp-apiClass","bp-alertClass",a],on:{confirm:function(){var e=this;s(this,i),t.confirm?t.confirm({vm:c.$children[0].$children[0],id:a}):c.$children[0].$children[0].hide().then(function(t){s(this,e),$(".".concat(a)).remove()}.bind(this))}.bind(this),cancel:function(){var e=this;s(this,i),t.cancel?t.cancel({vm:c.$children[0].$children[0],id:a}):c.$children[0].$children[0].hide().then(function(t){s(this,e),$(".".concat(a)).remove()}.bind(this))}.bind(this)}})}.bind(this)}).$mount("#".concat(a));return c.$children[0].$children[0].show().then(function(t){s(this,e)}.bind(this)),{vm:c.$children[0].$children[0],id:a}},showWidget:function(t){var r=this;if(!t||!e.dom.isVueComponent(t))throw new Error("component is null or not a Component");var o="c"+n.crypt.uuid();$('<div id="'.concat(o,'"></div>')).appendTo($("body"));var a=new i({render:function(e){var n=this;return s(this,r),e(t,{"update:visible":function(t){s(this,n),t||$(".".concat(o)).remove()}.bind(this)})}.bind(this)}).$mount("#".concat(o));return a.$children[0].$children[0].show().then(function(t){s(this,r)}.bind(this)),{vm:a.$children[0].$children[0],id:o}}}),si="$BpGlobalLoadingTimeout",ci="$BpGlobalLoading";function li(t,e){window[ci]=null}var ui=Object.freeze({__proto__:null,isLoadingVisible:function(){return $(".bp-loadingClass").length>0},hideLoading:function(){window[si]&&(clearTimeout(window[si].tm),window[si]=null),window[ci]&&window[ci].$children[0].hide()},showLoading:function(t){var r=this;e.router.off("routeChanged",li),e.router.on("routeChanged",li),t||(t="");var o=ni().loading;if(!o)throw new Error("dialog loading component is null");if(!window[ci]){var a="c"+n.crypt.uuid();$('<div id="'.concat(a,'"></div>')).appendTo($("body"));var c=new i({render:function(t){return s(this,r),t(o,{class:["bp-apiClass","bp-loadingClass",a]})}.bind(this)}).$mount("#".concat(a));window[ci]=c.$children[0]}"string"!=typeof t&&"number"!=typeof t||(t={content:t.toString()}),t.delay=t.delay||0,t.delay<0&&(t.delay=0);var l=Date.now();window[si]&&(window[si].now>l+t.delay?(clearTimeout(window[si].tm),window[si]=null):window[si].cfg=n.utils.mergeMap(t)),l+=t.delay;var u=setTimeout(function(){s(this,r);var t=window[si].cfg;window[si]=null,t=n.utils.mergeMap(o.data(),t),window[ci].$data.content=t.content,window[ci].$children[0].show()}.bind(this),t.delay);window[si]={tm:u,now:l,cfg:n.utils.mergeMap(t)}}});var di,fi=Object.freeze({__proto__:null,showToast:function(t){var e=this;t||(t="");var r=ni().toast;if(!r)throw new Error("dialog toast component is null");"string"!=typeof t&&"number"!=typeof t||(t={content:t.toString()}),t.durable=t.durable||0,t.pos=t.pos||"top",t.durable<0&&(t.durable=0),0==t.durable&&(t.durable=4e3);var o="c"+n.crypt.uuid();$('<div id="'.concat(o,'"></div>')).appendTo($("body"));var a=new i({render:function(n){return s(this,e),n(r,{class:["bp-apiClass",o,"center"==t.pos?"bp-toast__center":""]})}.bind(this)}).$mount("#".concat(o));a.$children[0].$data.content=t.content,a.$children[0].$data.icon=t.icon,a.$children[0].$children[0].show().then(function(t){s(this,e)}.bind(this));var c=a.$children[0].$children[0];setTimeout(function(){var t=this;s(this,e);c&&c.hide().then(function(e){s(this,t),o&&o.length>0&&$("."+o).remove()}.bind(this))}.bind(this),t.durable)}}),hi=a(a(a({},ai),ui),fi);function pi(t){pi.installed&&di===t||(pi.installed=!0,di=t,Object.defineProperty(t.prototype,"$bpWidget",{get:function(){return hi}}))}var vi=d.Promise,gi=x.f,bi=z("toStringTag"),mi=z("species"),wi={},_i=z("iterator"),yi=Array.prototype,xi=function(t,e,n){if(fe(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(n){return t.call(e,n)};case 2:return function(n,i){return t.call(e,n,i)};case 3:return function(n,i,r){return t.call(e,n,i,r)}}return function(){return t.apply(e,arguments)}},Ci=z("iterator"),$i=function(t,e,n,i){try{return i?e(w(n)[0],n[1]):e(n)}catch(e){var r=t.return;throw void 0!==r&&w(r.call(t)),e}},Ei=l((function(t){var e=function(t,e){this.stopped=t,this.result=e};(t.exports=function(t,n,i,r,o){var a,s,c,l,u,d,f,h,p=xi(n,i,r?2:1);if(o)a=t;else{if("function"!=typeof(s=function(t){if(null!=t)return t[Ci]||t["@@iterator"]||wi[ut(t)]}(t)))throw TypeError("Target is not iterable");if(void 0!==(h=s)&&(wi.Array===h||yi[_i]===h)){for(c=0,l=Pt(t.length);l>c;c++)if((u=r?p(w(f=t[c])[0],f[1]):p(t[c]))&&u instanceof e)return u;return new e(!1)}a=s.call(t)}for(d=a.next;!(f=d.call(a)).done;)if("object"==typeof(u=$i(a,p,f.value,r))&&u&&u instanceof e)return u;return new e(!1)}).stop=function(t){return new e(!0,t)}})),Si=z("iterator"),Oi=!1;try{var ki=0,ji={next:function(){return{done:!!ki++}},return:function(){Oi=!0}};ji[Si]=function(){return this},Array.from(ji,(function(){throw 2}))}catch(t){}var Ti,Ii,Ai,Pi=/(iphone|ipod|ipad).*applewebkit/i.test(Mn),Ri=d.location,Ni=d.setImmediate,Mi=d.clearImmediate,Fi=d.process,Li=d.MessageChannel,zi=d.Dispatch,Bi=0,Di={},Vi=function(t){if(Di.hasOwnProperty(t)){var e=Di[t];delete Di[t],e()}},Wi=function(t){return function(){Vi(t)}},Ui=function(t){Vi(t.data)},Gi=function(t){d.postMessage(t+"",Ri.protocol+"//"+Ri.host)};Ni&&Mi||(Ni=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return Di[++Bi]=function(){("function"==typeof t?t:Function(t)).apply(void 0,e)},Ti(Bi),Bi},Mi=function(t){delete Di[t]},"process"==st(Fi)?Ti=function(t){Fi.nextTick(Wi(t))}:zi&&zi.now?Ti=function(t){zi.now(Wi(t))}:Li&&!Pi?(Ai=(Ii=new Li).port2,Ii.port1.onmessage=Ui,Ti=xi(Ai.postMessage,Ai,1)):!d.addEventListener||"function"!=typeof postMessage||d.importScripts||f(Gi)||"file:"===Ri.protocol?Ti="onreadystatechange"in b("script")?function(t){$e.appendChild(b("script")).onreadystatechange=function(){$e.removeChild(this),Vi(t)}}:function(t){setTimeout(Wi(t),0)}:(Ti=Gi,d.addEventListener("message",Ui,!1)));var Xi,qi,Hi,Ki,Yi,Ji,Qi,Zi,tr={set:Ni,clear:Mi},er=Et.f,nr=tr.set,ir=d.MutationObserver||d.WebKitMutationObserver,rr=d.process,or=d.Promise,ar="process"==st(rr),sr=er(d,"queueMicrotask"),cr=sr&&sr.value;cr||(Xi=function(){var t,e;for(ar&&(t=rr.domain)&&t.exit();qi;){e=qi.fn,qi=qi.next;try{e()}catch(t){throw qi?Ki():Hi=void 0,t}}Hi=void 0,t&&t.enter()},ar?Ki=function(){rr.nextTick(Xi)}:ir&&!Pi?(Yi=!0,Ji=document.createTextNode(""),new ir(Xi).observe(Ji,{characterData:!0}),Ki=function(){Ji.data=Yi=!Yi}):or&&or.resolve?(Qi=or.resolve(void 0),Zi=Qi.then,Ki=function(){Zi.call(Qi,Xi)}):Ki=function(){nr.call(d,Xi)});var lr,ur,dr,fr,hr,pr,vr,gr=cr||function(t){var e={fn:t,next:void 0};Hi&&(Hi.next=e),qi||(qi=e,Ki()),Hi=e},br=function(t){var e,n;this.promise=new t((function(t,i){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=i})),this.resolve=fe(e),this.reject=fe(n)},mr={f:function(t){return new br(t)}},wr=function(t,e){if(w(t),p(e)&&e.constructor===t)return e;var n=mr.f(t);return(0,n.resolve)(e),n.promise},_r=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},yr=tr.set,xr=z("species"),Cr="Promise",$r=rt.get,Er=rt.set,Sr=rt.getterFor(Cr),Or=vi,kr=d.TypeError,jr=d.document,Tr=d.process,Ir=kt("fetch"),Ar=mr.f,Pr=Ar,Rr="process"==st(Tr),Nr=!!(jr&&jr.createEvent&&d.dispatchEvent),Mr=Zt(Cr,(function(){if(!(X(Or)!==String(Or))){if(66===Bn)return!0;if(!Rr&&"function"!=typeof PromiseRejectionEvent)return!0}if(Bn>=51&&/native code/.test(Or))return!1;var t=Or.resolve(1),e=function(t){t((function(){}),(function(){}))};return(t.constructor={})[xr]=e,!(t.then((function(){}))instanceof e)})),Fr=Mr||!function(t,e){if(!e&&!Oi)return!1;var n=!1;try{var i={};i[Si]=function(){return{next:function(){return{done:n=!0}}}},t(i)}catch(t){}return n}((function(t){Or.all(t).catch((function(){}))})),Lr=function(t){var e;return!(!p(t)||"function"!=typeof(e=t.then))&&e},zr=function(t,e,n){if(!e.notified){e.notified=!0;var i=e.reactions;gr((function(){for(var r=e.value,o=1==e.state,a=0;i.length>a;){var s,c,l,u=i[a++],d=o?u.ok:u.fail,f=u.resolve,h=u.reject,p=u.domain;try{d?(o||(2===e.rejection&&Wr(t,e),e.rejection=1),!0===d?s=r:(p&&p.enter(),s=d(r),p&&(p.exit(),l=!0)),s===u.promise?h(kr("Promise-chain cycle")):(c=Lr(s))?c.call(s,f,h):f(s)):h(r)}catch(t){p&&!l&&p.exit(),h(t)}}e.reactions=[],e.notified=!1,n&&!e.rejection&&Dr(t,e)}))}},Br=function(t,e,n){var i,r;Nr?((i=jr.createEvent("Event")).promise=e,i.reason=n,i.initEvent(t,!1,!0),d.dispatchEvent(i)):i={promise:e,reason:n},(r=d["on"+t])?r(i):"unhandledrejection"===t&&function(t,e){var n=d.console;n&&n.error&&(1===arguments.length?n.error(t):n.error(t,e))}("Unhandled promise rejection",n)},Dr=function(t,e){yr.call(d,(function(){var n,i=e.value;if(Vr(e)&&(n=_r((function(){Rr?Tr.emit("unhandledRejection",i,t):Br("unhandledrejection",t,i)})),e.rejection=Rr||Vr(e)?2:1,n.error))throw n.value}))},Vr=function(t){return 1!==t.rejection&&!t.parent},Wr=function(t,e){yr.call(d,(function(){Rr?Tr.emit("rejectionHandled",t):Br("rejectionhandled",t,e.value)}))},Ur=function(t,e,n,i){return function(r){t(e,n,r,i)}},Gr=function(t,e,n,i){e.done||(e.done=!0,i&&(e=i),e.value=n,e.state=2,zr(t,e,!0))},Xr=function(t,e,n,i){if(!e.done){e.done=!0,i&&(e=i);try{if(t===n)throw kr("Promise can't be resolved itself");var r=Lr(n);r?gr((function(){var i={done:!1};try{r.call(n,Ur(Xr,t,i,e),Ur(Gr,t,i,e))}catch(n){Gr(t,i,n,e)}})):(e.value=n,e.state=1,zr(t,e,!1))}catch(n){Gr(t,{done:!1},n,e)}}};Mr&&(Or=function(t){!function(t,e,n){if(!(t instanceof e))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation")}(this,Or,Cr),fe(t),lr.call(this);var e=$r(this);try{t(Ur(Xr,this,e),Ur(Gr,this,e))}catch(t){Gr(this,e,t)}},(lr=function(t){Er(this,{type:Cr,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=function(t,e,n){for(var i in e)ot(t,i,e[i],n);return t}(Or.prototype,{then:function(t,e){var n=Sr(this),i=Ar($n(this,Or));return i.ok="function"!=typeof t||t,i.fail="function"==typeof e&&e,i.domain=Rr?Tr.domain:void 0,n.parent=!0,n.reactions.push(i),0!=n.state&&zr(this,n,!1),i.promise},catch:function(t){return this.then(void 0,t)}}),ur=function(){var t=new lr,e=$r(t);this.promise=t,this.resolve=Ur(Xr,t,e),this.reject=Ur(Gr,t,e)},mr.f=Ar=function(t){return t===Or||t===dr?new ur(t):Pr(t)},"function"==typeof vi&&(fr=vi.prototype.then,ot(vi.prototype,"then",(function(t,e){var n=this;return new Or((function(t,e){fr.call(n,t,e)})).then(t,e)}),{unsafe:!0}),"function"==typeof Ir&&ee({global:!0,enumerable:!0,forced:!0},{fetch:function(t){return wr(Or,Ir.apply(d,arguments))}}))),ee({global:!0,wrap:!0,forced:Mr},{Promise:Or}),pr=Cr,vr=!1,(hr=Or)&&!T(hr=vr?hr:hr.prototype,bi)&&gi(hr,bi,{configurable:!0,value:pr}),function(t){var e=kt(t),n=x.f;h&&e&&!e[mi]&&n(e,mi,{configurable:!0,get:function(){return this}})}(Cr),dr=kt(Cr),ee({target:Cr,stat:!0,forced:Mr},{reject:function(t){var e=Ar(this);return e.reject.call(void 0,t),e.promise}}),ee({target:Cr,stat:!0,forced:Mr},{resolve:function(t){return wr(this,t)}}),ee({target:Cr,stat:!0,forced:Fr},{all:function(t){var e=this,n=Ar(e),i=n.resolve,r=n.reject,o=_r((function(){var n=fe(e.resolve),o=[],a=0,s=1;Ei(t,(function(t){var c=a++,l=!1;o.push(void 0),s++,n.call(e,t).then((function(t){l||(l=!0,o[c]=t,--s||i(o))}),r)})),--s||i(o)}));return o.error&&r(o.value),n.promise},race:function(t){var e=this,n=Ar(e),i=n.reject,r=_r((function(){var r=fe(e.resolve);Ei(t,(function(t){r.call(e,t).then(n.resolve,i)}))}));return r.error&&i(r.value),n.promise}});var qr={components:{},props:{visible:Boolean,mask:{default:!0,type:Boolean},maskClose:{default:!1,type:Boolean},preventEvent:{default:!0,type:Boolean},hideBodyScroll:{default:!0,type:Boolean},pageClass:String|Array,pageStyle:String|Array|Object},watch:{visible:function(t){var e=this;t?this.show().then(function(){s(this,e)}.bind(this)):this.hide().then(function(){s(this,e)}.bind(this))}},mounted:function(){var t=this;this.visible&&this.show().then(function(){s(this,t)}.bind(this))},beforeDestroy:function(){var t=this;this.visible&&this.hide().then(function(){s(this,t)}.bind(this))},methods:{show:function(){var t=this;return new Promise(function(e){var n=this;s(this,t),Qn(this.$el,this.mask,this.preventEvent,this.hideBodyScroll,function(){s(this,n),this.$emit("update:visible",!0),e()}.bind(this))}.bind(this))},hide:function(){var t=this;return new Promise(function(e){var n=this;s(this,t),ti(this.$el,function(){s(this,n),this.$emit("update:visible",!1),e()}.bind(this))}.bind(this))},onClickMask:function(){var t=this;this.maskClose&&this.hide().then(function(e){s(this,t)}.bind(this))}}},Hr=z("isConcatSpreadable"),Kr=Bn>=51||!f((function(){var t=[];return t[Hr]=!1,t.concat()[0]!==t})),Yr=Vn("concat"),Jr=function(t){if(!p(t))return!1;var e=t[Hr];return void 0!==e?!!e:An(t)};function Qr(t,e,n,i,r,o,a,s,c,l){"boolean"!=typeof a&&(c=s,s=a,a=!1);var u,d="function"==typeof n?n.options:n;if(t&&t.render&&(d.render=t.render,d.staticRenderFns=t.staticRenderFns,d._compiled=!0,r&&(d.functional=!0)),i&&(d._scopeId=i),o?(u=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,c(t)),t&&t._registeredComponents&&t._registeredComponents.add(o)},d._ssrRegister=u):e&&(u=a?function(t){e.call(this,l(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,s(t))}),u)if(d.functional){var f=d.render;d.render=function(t,e){return u.call(e),f(t,e)}}else{var h=d.beforeCreate;d.beforeCreate=h?[].concat(h,u):[u]}return n}ee({target:"Array",proto:!0,forced:!Kr||!Yr},{concat:function(t){var e,n,i,r,o,a=he(this),s=Rn(a,0),c=0;for(e=-1,i=arguments.length;e<i;e++)if(Jr(o=-1===e?a:arguments[e])){if(c+(r=Pt(o.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n<r;n++,c++)n in o&&Nn(s,c,o[n])}else{if(c>=9007199254740991)throw TypeError("Maximum allowed index exceeded");Nn(s,c++,o)}return s.length=c,s}});var Zr=qr,to=function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"bp-widget",on:{click:this.onClickMask}},[e("div",{staticClass:"bp-widget__content",class:this.pageClass,style:this.pageStyle},[this._t("default")],2)])};to._withStripped=!0;var eo=Qr({render:to,staticRenderFns:[]},void 0,Zr,void 0,!1,void 0,!1,void 0,void 0,void 0),no={components:{bpIcon:e.VueObject.bpIcon,widget:eo},props:{visible:Boolean,mask:{default:!0,type:Boolean},maskClose:Boolean,pageClass:String|Array,pageStyle:String|Array|Object,showClose:{default:!0,type:Boolean},title:String},data:function(){return{visibleReal:!1,footClass:null}},watch:{visible:function(t){this.visibleReal=t},visibleReal:function(t){this.$emit("update:visible",t)}},beforeMount:function(){this.visibleReal=this.visible;var t=this.$slots.foot;if(t&&t[0]&&t[0].children){for(var e=0,n=0;n<t[0].children.length;n++)t[0].children[n].tag&&e++;1==e?this.footClass="bp-dialog__footOneButton":2==e?this.footClass="bp-dialog__footTwoButton":3==e&&(this.footClass="bp-dialog__footThreeButton")}},beforeDestroy:function(){},mounted:function(){},methods:{show:function(){return this.$refs.widget.show()},hide:function(){return this.$refs.widget.hide()}}},io=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("widget",{ref:"widget",staticClass:"bp-dialog",attrs:{visible:t.visibleReal,maskClose:t.maskClose,mask:t.mask,pageClass:t.pageClass,pageStyle:t.pageStyle,preventEvent:!0},on:{"update:visible":function(e){t.visibleReal=e}}},[t.$slots.title?n("div",{staticClass:"bp-dialog__title bp-ellipsis",on:{click:function(t){t.stopPropagation()}}},[t._t("title")],2):t.title?n("div",{staticClass:"bp-dialog__title bp-ellipsis",on:{click:function(t){t.stopPropagation()}}},[t._v(t._s(t.title))]):t._e(),t._v(" "),n("div",{staticClass:"bp-dialog__main",on:{click:function(t){t.stopPropagation()}}},[t._t("default")],2),t._v(" "),t.$slots.foot?n("div",{staticClass:"bp-dialog__foot",class:t.footClass,on:{click:function(t){t.stopPropagation()}}},[t._t("foot")],2):t._e(),t._v(" "),t.showClose?n("bp-icon",{staticClass:"bp-dialog__close",attrs:{name:"bp-dialog_close"},on:{click:function(e){e.stopPropagation(),t.hide().then((function(t){}))}}}):t._e()],1)};io._withStripped=!0;var ro=Qr({render:io,staticRenderFns:[]},void 0,no,void 0,!1,void 0,!1,void 0,void 0,void 0),oo={components:{bpDialog:ro},data:function(){return{title:"",content:"",okText:"确认"}}},ao=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("bp-dialog",{attrs:{title:t.title,showClose:!1}},[t._v("\n "+t._s(t.content)+"\n "),n("div",{attrs:{slot:"foot"},slot:"foot"},[n("button",{on:{click:function(e){return t.$emit("confirm")}}},[t._v(t._s(t.okText))])])])};ao._withStripped=!0;var so=Qr({render:ao,staticRenderFns:[]},void 0,oo,void 0,!1,void 0,!1,void 0,void 0,void 0),co={components:{bpDialog:ro},data:function(){return{title:"",content:"",okText:"确认",cancelText:"取消"}}},lo=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("bp-dialog",{attrs:{title:t.title,showClose:!1}},[t._v("\n "+t._s(t.content)+"\n "),n("div",{attrs:{slot:"foot"},slot:"foot"},[n("button",{staticStyle:{"font-weight":"500"},on:{click:function(e){return t.$emit("cancel")}}},[t._v(t._s(t.cancelText))]),t._v(" "),n("button",{on:{click:function(e){return t.$emit("confirm")}}},[t._v(t._s(t.okText))])])])};lo._withStripped=!0;var uo=Qr({render:lo,staticRenderFns:[]},void 0,co,void 0,!1,void 0,!1,void 0,void 0,void 0),fo={components:{bpIcon:e.VueObject.bpIcon,widget:eo},data:function(){return{content:""}}},ho=function(){var t=this.$createElement,e=this._self._c||t;return e("widget",{ref:"widget",staticClass:"bp-loading",attrs:{mask:!1,preventEvent:!0}},[e("div",{staticClass:"bp-loading__main"},[e("bp-icon",{attrs:{name:"loading"}})],1),this._v(" "),e("div",{staticClass:"bp-loading__text"},[this._v("\n "+this._s(this.content)+"\n ")])])};ho._withStripped=!0;var po=Qr({render:ho,staticRenderFns:[]},void 0,fo,void 0,!1,void 0,!1,void 0,void 0,void 0),vo={components:{bpIcon:e.VueObject.bpIcon,widget:eo},data:function(){return{content:"",icon:null}}},go=function(){var t=this.$createElement,e=this._self._c||t;return e("widget",{ref:"widget",staticClass:"bp-toast",attrs:{mask:!1,preventEvent:!1,hideBodyScroll:!1}},[e("div",[this.icon?e("div",{staticClass:"bp-toast__main"},[e("bp-icon",{attrs:{name:this.icon}})],1):this._e(),this._v(" "),e("div",{staticClass:"bp-toast__text"},[this._v("\n "+this._s(this.content)+"\n ")])])])};go._withStripped=!0;var bo=Qr({render:go,staticRenderFns:[]},void 0,vo,void 0,!1,void 0,!1,void 0,void 0,void 0);function mo(t,e){var n=this;Zn(),setTimeout(function(){s(this,n);var t=$(".bp-navbarView_page").length,e=$(".bp-widget[data-mark='".concat("page"+t,"']"));if(0==e.length)$("body").removeClass("bp-widget__fixscroll"),$("html").css("padding-right","");else{for(var i=0;i<e.length;i++){var r=$(e[i]);if(r.hasClass("bp-widget__mask")&&r.hasClass("bp-widget__visible"))return void Jn(r)}$("body").removeClass("bp-widget__fixscroll"),$("html").css("padding-right","")}}.bind(this),800)}function wo(){e.icons.registerAliasIcon("bp-dialog_close","cancel"),ei({alert:so,confirm:uo,loading:po,toast:bo}),e.router.off("routeChanged",mo).on("routeChanged",mo)}wo();var _o={init:wo,VuePlugin:function(){return{install:pi}},hook:Hn,registerDialogComponents:ei,apiWidget:hi,bpDialog:ro,bpWidget:eo};module.exports=_o; | ||
"use strict";function t(t){return t&&"object"==typeof t&&"default"in t?t.default:t}var e=t(require("@bpui/libs")),n=require("febs-browser"),i=t(require("vue"));function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function s(t,e){if(t!==e)throw new TypeError("Cannot instantiate an arrow function")}var c="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function l(t,e){return t(e={exports:{}},e.exports),e.exports}var u=function(t){return t&&t.Math==Math&&t},d=u("object"==typeof globalThis&&globalThis)||u("object"==typeof window&&window)||u("object"==typeof self&&self)||u("object"==typeof c&&c)||Function("return this")(),f=function(t){try{return!!t()}catch(t){return!0}},p=!f((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),h=function(t){return"object"==typeof t?null!==t:"function"==typeof t},v=d.document,g=h(v)&&h(v.createElement),b=function(t){return g?v.createElement(t):{}},m=!p&&!f((function(){return 7!=Object.defineProperty(b("div"),"a",{get:function(){return 7}}).a})),w=function(t){if(!h(t))throw TypeError(String(t)+" is not an object");return t},_=function(t,e){if(!h(t))return t;var n,i;if(e&&"function"==typeof(n=t.toString)&&!h(i=n.call(t)))return i;if("function"==typeof(n=t.valueOf)&&!h(i=n.call(t)))return i;if(!e&&"function"==typeof(n=t.toString)&&!h(i=n.call(t)))return i;throw TypeError("Can't convert object to primitive value")},y=Object.defineProperty,C={f:p?y:function(t,e,n){if(w(t),e=_(e,!0),w(n),m)try{return y(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},x=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},E=p?function(t,e,n){return C.f(t,e,x(1,n))}:function(t,e,n){return t[e]=n,t},S=function(t,e){try{E(d,t,e)}catch(n){d[t]=e}return e},O=d["__core-js_shared__"]||S("__core-js_shared__",{}),k=l((function(t){(t.exports=function(t,e){return O[t]||(O[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.5",mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),j={}.hasOwnProperty,T=function(t,e){return j.call(t,e)},I=0,A=Math.random(),P=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++I+A).toString(36)},R=!!Object.getOwnPropertySymbols&&!f((function(){return!String(Symbol())})),N=R&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,M=k("wks"),L=d.Symbol,F=N?L:L&&L.withoutSetter||P,B=function(t){return T(M,t)||(R&&T(L,t)?M[t]=L[t]:M[t]=F("Symbol."+t)),M[t]},D={};D[B("toStringTag")]="z";var V="[object z]"===String(D),z=Function.toString;"function"!=typeof O.inspectSource&&(O.inspectSource=function(t){return z.call(t)});var W,U,G,X=O.inspectSource,q=d.WeakMap,H="function"==typeof q&&/native code/.test(X(q)),K=k("keys"),Y=function(t){return K[t]||(K[t]=P(t))},J={},Q=d.WeakMap;if(H){var Z=new Q,tt=Z.get,et=Z.has,nt=Z.set;W=function(t,e){return nt.call(Z,t,e),e},U=function(t){return tt.call(Z,t)||{}},G=function(t){return et.call(Z,t)}}else{var it=Y("state");J[it]=!0,W=function(t,e){return E(t,it,e),e},U=function(t){return T(t,it)?t[it]:{}},G=function(t){return T(t,it)}}var rt={set:W,get:U,has:G,enforce:function(t){return G(t)?U(t):W(t,{})},getterFor:function(t){return function(e){var n;if(!h(e)||(n=U(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}},ot=l((function(t){var e=rt.get,n=rt.enforce,i=String(String).split("String");(t.exports=function(t,e,r,o){var a=!!o&&!!o.unsafe,s=!!o&&!!o.enumerable,c=!!o&&!!o.noTargetGet;"function"==typeof r&&("string"!=typeof e||T(r,"name")||E(r,"name",e),n(r).source=i.join("string"==typeof e?e:"")),t!==d?(a?!c&&t[e]&&(s=!0):delete t[e],s?t[e]=r:E(t,e,r)):s?t[e]=r:S(e,r)})(Function.prototype,"toString",(function(){return"function"==typeof this&&e(this).source||X(this)}))})),at={}.toString,st=function(t){return at.call(t).slice(8,-1)},ct=B("toStringTag"),lt="Arguments"==st(function(){return arguments}()),ut=V?st:function(t){var e,n,i;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),ct))?n:lt?st(e):"Object"==(i=st(e))&&"function"==typeof e.callee?"Arguments":i},dt=V?{}.toString:function(){return"[object "+ut(this)+"]"};V||ot(Object.prototype,"toString",dt,{unsafe:!0});var ft=function(){var t=w(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},pt=RegExp.prototype,ht=pt.toString,vt=f((function(){return"/a/b"!=ht.call({source:"a",flags:"b"})})),gt="toString"!=ht.name;(vt||gt)&&ot(RegExp.prototype,"toString",(function(){var t=w(this),e=String(t.source),n=t.flags;return"/"+e+"/"+String(void 0===n&&t instanceof RegExp&&!("flags"in pt)?ft.call(t):n)}),{unsafe:!0});var bt={}.propertyIsEnumerable,mt=Object.getOwnPropertyDescriptor,wt={f:mt&&!bt.call({1:2},1)?function(t){var e=mt(this,t);return!!e&&e.enumerable}:bt},_t="".split,yt=f((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==st(t)?_t.call(t,""):Object(t)}:Object,Ct=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},xt=function(t){return yt(Ct(t))},Et=Object.getOwnPropertyDescriptor,$t={f:p?Et:function(t,e){if(t=xt(t),e=_(e,!0),m)try{return Et(t,e)}catch(t){}if(T(t,e))return x(!wt.f.call(t,e),t[e])}},St=d,Ot=function(t){return"function"==typeof t?t:void 0},kt=function(t,e){return arguments.length<2?Ot(St[t])||Ot(d[t]):St[t]&&St[t][e]||d[t]&&d[t][e]},jt=Math.ceil,Tt=Math.floor,It=function(t){return isNaN(t=+t)?0:(t>0?Tt:jt)(t)},At=Math.min,Pt=function(t){return t>0?At(It(t),9007199254740991):0},Rt=Math.max,Nt=Math.min,Mt=function(t,e){var n=It(t);return n<0?Rt(n+e,0):Nt(n,e)},Lt=function(t){return function(e,n,i){var r,o=xt(e),a=Pt(o.length),s=Mt(i,a);if(t&&n!=n){for(;a>s;)if((r=o[s++])!=r)return!0}else for(;a>s;s++)if((t||s in o)&&o[s]===n)return t||s||0;return!t&&-1}},Ft={includes:Lt(!0),indexOf:Lt(!1)},Bt=Ft.indexOf,Dt=function(t,e){var n,i=xt(t),r=0,o=[];for(n in i)!T(J,n)&&T(i,n)&&o.push(n);for(;e.length>r;)T(i,n=e[r++])&&(~Bt(o,n)||o.push(n));return o},Vt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],zt=Vt.concat("length","prototype"),Wt={f:Object.getOwnPropertyNames||function(t){return Dt(t,zt)}},Ut={f:Object.getOwnPropertySymbols},Gt=kt("Reflect","ownKeys")||function(t){var e=Wt.f(w(t)),n=Ut.f;return n?e.concat(n(t)):e},Xt=function(t,e){for(var n=Gt(e),i=C.f,r=$t.f,o=0;o<n.length;o++){var a=n[o];T(t,a)||i(t,a,r(e,a))}},qt=/#|\.prototype\./,Ht=function(t,e){var n=Yt[Kt(t)];return n==Qt||n!=Jt&&("function"==typeof e?f(e):!!e)},Kt=Ht.normalize=function(t){return String(t).replace(qt,".").toLowerCase()},Yt=Ht.data={},Jt=Ht.NATIVE="N",Qt=Ht.POLYFILL="P",Zt=Ht,te=$t.f,ee=function(t,e){var n,i,r,o,a,s=t.target,c=t.global,l=t.stat;if(n=c?d:l?d[s]||S(s,{}):(d[s]||{}).prototype)for(i in e){if(o=e[i],r=t.noTargetGet?(a=te(n,i))&&a.value:n[i],!Zt(c?i:s+(l?".":"#")+i,t.forced)&&void 0!==r){if(typeof o==typeof r)continue;Xt(o,r)}(t.sham||r&&r.sham)&&E(o,"sham",!0),ot(n,i,o,t)}},ne=function(t,e){var n=[][t];return!!n&&f((function(){n.call(null,e||function(){throw 1},1)}))},ie=Object.defineProperty,re={},oe=function(t){throw t},ae=function(t,e){if(T(re,t))return re[t];e||(e={});var n=[][t],i=!!T(e,"ACCESSORS")&&e.ACCESSORS,r=T(e,0)?e[0]:oe,o=T(e,1)?e[1]:void 0;return re[t]=!!n&&!f((function(){if(i&&!p)return!0;var t={length:-1};i?ie(t,1,{enumerable:!0,get:oe}):t[1]=1,n.call(t,r,o)}))},se=Ft.indexOf,ce=[].indexOf,le=!!ce&&1/[1].indexOf(1,-0)<0,ue=ne("indexOf"),de=ae("indexOf",{ACCESSORS:!0,1:0});ee({target:"Array",proto:!0,forced:le||!ue||!de},{indexOf:function(t){return le?ce.apply(this,arguments)||0:se(this,t,arguments.length>1?arguments[1]:void 0)}});var fe=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t},pe=function(t){return Object(Ct(t))},he=[],ve=he.sort,ge=f((function(){he.sort(void 0)})),be=f((function(){he.sort(null)})),me=ne("sort");ee({target:"Array",proto:!0,forced:ge||!be||!me},{sort:function(t){return void 0===t?ve.call(pe(this)):ve.call(pe(this),fe(t))}});var we,_e=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),e=n instanceof Array}catch(t){}return function(n,i){return w(n),function(t){if(!h(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype")}(i),e?t.call(n,i):n.__proto__=i,n}}():void 0),ye=function(t,e,n){var i,r;return _e&&"function"==typeof(i=e.constructor)&&i!==n&&h(r=i.prototype)&&r!==n.prototype&&_e(t,r),t},Ce=Object.keys||function(t){return Dt(t,Vt)},xe=p?Object.defineProperties:function(t,e){w(t);for(var n,i=Ce(e),r=i.length,o=0;r>o;)C.f(t,n=i[o++],e[n]);return t},Ee=kt("document","documentElement"),$e=Y("IE_PROTO"),Se=function(){},Oe=function(t){return"<script>"+t+"<\/script>"},ke=function(){try{we=document.domain&&new ActiveXObject("htmlfile")}catch(t){}var t,e;ke=we?function(t){t.write(Oe("")),t.close();var e=t.parentWindow.Object;return t=null,e}(we):((e=b("iframe")).style.display="none",Ee.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(Oe("document.F=Object")),t.close(),t.F);for(var n=Vt.length;n--;)delete ke.prototype[Vt[n]];return ke()};J[$e]=!0;var je=Object.create||function(t,e){var n;return null!==t?(Se.prototype=w(t),n=new Se,Se.prototype=null,n[$e]=t):n=ke(),void 0===e?n:xe(n,e)},Te="\t\n\v\f\r \u2028\u2029\ufeff",Ie="["+Te+"]",Ae=RegExp("^"+Ie+Ie+"*"),Pe=RegExp(Ie+Ie+"*$"),Re=function(t){return function(e){var n=String(Ct(e));return 1&t&&(n=n.replace(Ae,"")),2&t&&(n=n.replace(Pe,"")),n}},Ne={start:Re(1),end:Re(2),trim:Re(3)},Me=Wt.f,Le=$t.f,Fe=C.f,Be=Ne.trim,De=d.Number,Ve=De.prototype,ze="Number"==st(je(Ve)),We=function(t){var e,n,i,r,o,a,s,c,l=_(t,!1);if("string"==typeof l&&l.length>2)if(43===(e=(l=Be(l)).charCodeAt(0))||45===e){if(88===(n=l.charCodeAt(2))||120===n)return NaN}else if(48===e){switch(l.charCodeAt(1)){case 66:case 98:i=2,r=49;break;case 79:case 111:i=8,r=55;break;default:return+l}for(a=(o=l.slice(2)).length,s=0;s<a;s++)if((c=o.charCodeAt(s))<48||c>r)return NaN;return parseInt(o,i)}return+l};if(Zt("Number",!De(" 0o1")||!De("0b1")||De("+0x1"))){for(var Ue,Ge=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof Ge&&(ze?f((function(){Ve.valueOf.call(n)})):"Number"!=st(n))?ye(new De(We(e)),n,Ge):We(e)},Xe=p?Me(De):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),qe=0;Xe.length>qe;qe++)T(De,Ue=Xe[qe])&&!T(Ge,Ue)&&Fe(Ge,Ue,Le(De,Ue));Ge.prototype=Ve,Ve.constructor=Ge,ot(d,"Number",Ge)}var He=d.Promise,Ke=C.f,Ye=B("toStringTag"),Je=B("species"),Qe={},Ze=B("iterator"),tn=Array.prototype,en=function(t,e,n){if(fe(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(n){return t.call(e,n)};case 2:return function(n,i){return t.call(e,n,i)};case 3:return function(n,i,r){return t.call(e,n,i,r)}}return function(){return t.apply(e,arguments)}},nn=B("iterator"),rn=function(t,e,n,i){try{return i?e(w(n)[0],n[1]):e(n)}catch(e){var r=t.return;throw void 0!==r&&w(r.call(t)),e}},on=l((function(t){var e=function(t,e){this.stopped=t,this.result=e};(t.exports=function(t,n,i,r,o){var a,s,c,l,u,d,f,p,h=en(n,i,r?2:1);if(o)a=t;else{if("function"!=typeof(s=function(t){if(null!=t)return t[nn]||t["@@iterator"]||Qe[ut(t)]}(t)))throw TypeError("Target is not iterable");if(void 0!==(p=s)&&(Qe.Array===p||tn[Ze]===p)){for(c=0,l=Pt(t.length);l>c;c++)if((u=r?h(w(f=t[c])[0],f[1]):h(t[c]))&&u instanceof e)return u;return new e(!1)}a=s.call(t)}for(d=a.next;!(f=d.call(a)).done;)if("object"==typeof(u=rn(a,h,f.value,r))&&u&&u instanceof e)return u;return new e(!1)}).stop=function(t){return new e(!0,t)}})),an=B("iterator"),sn=!1;try{var cn=0,ln={next:function(){return{done:!!cn++}},return:function(){sn=!0}};ln[an]=function(){return this},Array.from(ln,(function(){throw 2}))}catch(t){}var un,dn,fn,pn=B("species"),hn=function(t,e){var n,i=w(t).constructor;return void 0===i||null==(n=w(i)[pn])?e:fe(n)},vn=kt("navigator","userAgent")||"",gn=/(iphone|ipod|ipad).*applewebkit/i.test(vn),bn=d.location,mn=d.setImmediate,wn=d.clearImmediate,_n=d.process,yn=d.MessageChannel,Cn=d.Dispatch,xn=0,En={},$n=function(t){if(En.hasOwnProperty(t)){var e=En[t];delete En[t],e()}},Sn=function(t){return function(){$n(t)}},On=function(t){$n(t.data)},kn=function(t){d.postMessage(t+"",bn.protocol+"//"+bn.host)};mn&&wn||(mn=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return En[++xn]=function(){("function"==typeof t?t:Function(t)).apply(void 0,e)},un(xn),xn},wn=function(t){delete En[t]},"process"==st(_n)?un=function(t){_n.nextTick(Sn(t))}:Cn&&Cn.now?un=function(t){Cn.now(Sn(t))}:yn&&!gn?(fn=(dn=new yn).port2,dn.port1.onmessage=On,un=en(fn.postMessage,fn,1)):!d.addEventListener||"function"!=typeof postMessage||d.importScripts||f(kn)||"file:"===bn.protocol?un="onreadystatechange"in b("script")?function(t){Ee.appendChild(b("script")).onreadystatechange=function(){Ee.removeChild(this),$n(t)}}:function(t){setTimeout(Sn(t),0)}:(un=kn,d.addEventListener("message",On,!1)));var jn,Tn,In,An,Pn,Rn,Nn,Mn,Ln={set:mn,clear:wn},Fn=$t.f,Bn=Ln.set,Dn=d.MutationObserver||d.WebKitMutationObserver,Vn=d.process,zn=d.Promise,Wn="process"==st(Vn),Un=Fn(d,"queueMicrotask"),Gn=Un&&Un.value;Gn||(jn=function(){var t,e;for(Wn&&(t=Vn.domain)&&t.exit();Tn;){e=Tn.fn,Tn=Tn.next;try{e()}catch(t){throw Tn?An():In=void 0,t}}In=void 0,t&&t.enter()},Wn?An=function(){Vn.nextTick(jn)}:Dn&&!gn?(Pn=!0,Rn=document.createTextNode(""),new Dn(jn).observe(Rn,{characterData:!0}),An=function(){Rn.data=Pn=!Pn}):zn&&zn.resolve?(Nn=zn.resolve(void 0),Mn=Nn.then,An=function(){Mn.call(Nn,jn)}):An=function(){Bn.call(d,jn)});var Xn,qn,Hn=Gn||function(t){var e={fn:t,next:void 0};In&&(In.next=e),Tn||(Tn=e,An()),In=e},Kn=function(t){var e,n;this.promise=new t((function(t,i){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=i})),this.resolve=fe(e),this.reject=fe(n)},Yn={f:function(t){return new Kn(t)}},Jn=function(t,e){if(w(t),h(e)&&e.constructor===t)return e;var n=Yn.f(t);return(0,n.resolve)(e),n.promise},Qn=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},Zn=d.process,ti=Zn&&Zn.versions,ei=ti&&ti.v8;ei?qn=(Xn=ei.split("."))[0]+Xn[1]:vn&&(!(Xn=vn.match(/Edge\/(\d+)/))||Xn[1]>=74)&&(Xn=vn.match(/Chrome\/(\d+)/))&&(qn=Xn[1]);var ni,ii,ri,oi,ai,si,ci,li=qn&&+qn,ui=Ln.set,di=B("species"),fi="Promise",pi=rt.get,hi=rt.set,vi=rt.getterFor(fi),gi=He,bi=d.TypeError,mi=d.document,wi=d.process,_i=kt("fetch"),yi=Yn.f,Ci=yi,xi="process"==st(wi),Ei=!!(mi&&mi.createEvent&&d.dispatchEvent),$i=Zt(fi,(function(){if(!(X(gi)!==String(gi))){if(66===li)return!0;if(!xi&&"function"!=typeof PromiseRejectionEvent)return!0}if(li>=51&&/native code/.test(gi))return!1;var t=gi.resolve(1),e=function(t){t((function(){}),(function(){}))};return(t.constructor={})[di]=e,!(t.then((function(){}))instanceof e)})),Si=$i||!function(t,e){if(!e&&!sn)return!1;var n=!1;try{var i={};i[an]=function(){return{next:function(){return{done:n=!0}}}},t(i)}catch(t){}return n}((function(t){gi.all(t).catch((function(){}))})),Oi=function(t){var e;return!(!h(t)||"function"!=typeof(e=t.then))&&e},ki=function(t,e,n){if(!e.notified){e.notified=!0;var i=e.reactions;Hn((function(){for(var r=e.value,o=1==e.state,a=0;i.length>a;){var s,c,l,u=i[a++],d=o?u.ok:u.fail,f=u.resolve,p=u.reject,h=u.domain;try{d?(o||(2===e.rejection&&Ai(t,e),e.rejection=1),!0===d?s=r:(h&&h.enter(),s=d(r),h&&(h.exit(),l=!0)),s===u.promise?p(bi("Promise-chain cycle")):(c=Oi(s))?c.call(s,f,p):f(s)):p(r)}catch(t){h&&!l&&h.exit(),p(t)}}e.reactions=[],e.notified=!1,n&&!e.rejection&&Ti(t,e)}))}},ji=function(t,e,n){var i,r;Ei?((i=mi.createEvent("Event")).promise=e,i.reason=n,i.initEvent(t,!1,!0),d.dispatchEvent(i)):i={promise:e,reason:n},(r=d["on"+t])?r(i):"unhandledrejection"===t&&function(t,e){var n=d.console;n&&n.error&&(1===arguments.length?n.error(t):n.error(t,e))}("Unhandled promise rejection",n)},Ti=function(t,e){ui.call(d,(function(){var n,i=e.value;if(Ii(e)&&(n=Qn((function(){xi?wi.emit("unhandledRejection",i,t):ji("unhandledrejection",t,i)})),e.rejection=xi||Ii(e)?2:1,n.error))throw n.value}))},Ii=function(t){return 1!==t.rejection&&!t.parent},Ai=function(t,e){ui.call(d,(function(){xi?wi.emit("rejectionHandled",t):ji("rejectionhandled",t,e.value)}))},Pi=function(t,e,n,i){return function(r){t(e,n,r,i)}},Ri=function(t,e,n,i){e.done||(e.done=!0,i&&(e=i),e.value=n,e.state=2,ki(t,e,!0))},Ni=function(t,e,n,i){if(!e.done){e.done=!0,i&&(e=i);try{if(t===n)throw bi("Promise can't be resolved itself");var r=Oi(n);r?Hn((function(){var i={done:!1};try{r.call(n,Pi(Ni,t,i,e),Pi(Ri,t,i,e))}catch(n){Ri(t,i,n,e)}})):(e.value=n,e.state=1,ki(t,e,!1))}catch(n){Ri(t,{done:!1},n,e)}}};function Mi(t,e){return RegExp(t,e)}$i&&(gi=function(t){!function(t,e,n){if(!(t instanceof e))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation")}(this,gi,fi),fe(t),ni.call(this);var e=pi(this);try{t(Pi(Ni,this,e),Pi(Ri,this,e))}catch(t){Ri(this,e,t)}},(ni=function(t){hi(this,{type:fi,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=function(t,e,n){for(var i in e)ot(t,i,e[i],n);return t}(gi.prototype,{then:function(t,e){var n=vi(this),i=yi(hn(this,gi));return i.ok="function"!=typeof t||t,i.fail="function"==typeof e&&e,i.domain=xi?wi.domain:void 0,n.parent=!0,n.reactions.push(i),0!=n.state&&ki(this,n,!1),i.promise},catch:function(t){return this.then(void 0,t)}}),ii=function(){var t=new ni,e=pi(t);this.promise=t,this.resolve=Pi(Ni,t,e),this.reject=Pi(Ri,t,e)},Yn.f=yi=function(t){return t===gi||t===ri?new ii(t):Ci(t)},"function"==typeof He&&(oi=He.prototype.then,ot(He.prototype,"then",(function(t,e){var n=this;return new gi((function(t,e){oi.call(n,t,e)})).then(t,e)}),{unsafe:!0}),"function"==typeof _i&&ee({global:!0,enumerable:!0,forced:!0},{fetch:function(t){return Jn(gi,_i.apply(d,arguments))}}))),ee({global:!0,wrap:!0,forced:$i},{Promise:gi}),si=fi,ci=!1,(ai=gi)&&!T(ai=ci?ai:ai.prototype,Ye)&&Ke(ai,Ye,{configurable:!0,value:si}),function(t){var e=kt(t),n=C.f;p&&e&&!e[Je]&&n(e,Je,{configurable:!0,get:function(){return this}})}(fi),ri=kt(fi),ee({target:fi,stat:!0,forced:$i},{reject:function(t){var e=yi(this);return e.reject.call(void 0,t),e.promise}}),ee({target:fi,stat:!0,forced:$i},{resolve:function(t){return Jn(this,t)}}),ee({target:fi,stat:!0,forced:Si},{all:function(t){var e=this,n=yi(e),i=n.resolve,r=n.reject,o=Qn((function(){var n=fe(e.resolve),o=[],a=0,s=1;on(t,(function(t){var c=a++,l=!1;o.push(void 0),s++,n.call(e,t).then((function(t){l||(l=!0,o[c]=t,--s||i(o))}),r)})),--s||i(o)}));return o.error&&r(o.value),n.promise},race:function(t){var e=this,n=yi(e),i=n.reject,r=Qn((function(){var r=fe(e.resolve);on(t,(function(t){r.call(e,t).then(n.resolve,i)}))}));return r.error&&i(r.value),n.promise}});var Li,Fi,Bi={UNSUPPORTED_Y:f((function(){var t=Mi("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),BROKEN_CARET:f((function(){var t=Mi("^r","gy");return t.lastIndex=2,null!=t.exec("str")}))},Di=RegExp.prototype.exec,Vi=String.prototype.replace,zi=Di,Wi=(Li=/a/,Fi=/b*/g,Di.call(Li,"a"),Di.call(Fi,"a"),0!==Li.lastIndex||0!==Fi.lastIndex),Ui=Bi.UNSUPPORTED_Y||Bi.BROKEN_CARET,Gi=void 0!==/()??/.exec("")[1];(Wi||Gi||Ui)&&(zi=function(t){var e,n,i,r,o=this,a=Ui&&o.sticky,s=ft.call(o),c=o.source,l=0,u=t;return a&&(-1===(s=s.replace("y","")).indexOf("g")&&(s+="g"),u=String(t).slice(o.lastIndex),o.lastIndex>0&&(!o.multiline||o.multiline&&"\n"!==t[o.lastIndex-1])&&(c="(?: "+c+")",u=" "+u,l++),n=new RegExp("^(?:"+c+")",s)),Gi&&(n=new RegExp("^"+c+"$(?!\\s)",s)),Wi&&(e=o.lastIndex),i=Di.call(a?n:o,u),a?i?(i.input=i.input.slice(l),i[0]=i[0].slice(l),i.index=o.lastIndex,o.lastIndex+=i[0].length):o.lastIndex=0:Wi&&i&&(o.lastIndex=o.global?i.index+i[0].length:e),Gi&&i&&i.length>1&&Vi.call(i[0],n,(function(){for(r=1;r<arguments.length-2;r++)void 0===arguments[r]&&(i[r]=void 0)})),i});var Xi=zi;ee({target:"RegExp",proto:!0,forced:/./.exec!==Xi},{exec:Xi});var qi=B("species"),Hi=!f((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),Ki="$0"==="a".replace(/./,"$0"),Yi=B("replace"),Ji=!!/./[Yi]&&""===/./[Yi]("a","$0"),Qi=!f((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),Zi=function(t,e,n,i){var r=B(t),o=!f((function(){var e={};return e[r]=function(){return 7},7!=""[t](e)})),a=o&&!f((function(){var e=!1,n=/a/;return"split"===t&&((n={}).constructor={},n.constructor[qi]=function(){return n},n.flags="",n[r]=/./[r]),n.exec=function(){return e=!0,null},n[r](""),!e}));if(!o||!a||"replace"===t&&(!Hi||!Ki||Ji)||"split"===t&&!Qi){var s=/./[r],c=n(r,""[t],(function(t,e,n,i,r){return e.exec===Xi?o&&!r?{done:!0,value:s.call(e,n,i)}:{done:!0,value:t.call(n,e,i)}:{done:!1}}),{REPLACE_KEEPS_$0:Ki,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:Ji}),l=c[0],u=c[1];ot(String.prototype,t,l),ot(RegExp.prototype,r,2==e?function(t,e){return u.call(t,this,e)}:function(t){return u.call(t,this)})}i&&E(RegExp.prototype[r],"sham",!0)},tr=function(t){return function(e,n){var i,r,o=String(Ct(e)),a=It(n),s=o.length;return a<0||a>=s?t?"":void 0:(i=o.charCodeAt(a))<55296||i>56319||a+1===s||(r=o.charCodeAt(a+1))<56320||r>57343?t?o.charAt(a):i:t?o.slice(a,a+2):r-56320+(i-55296<<10)+65536}},er={codeAt:tr(!1),charAt:tr(!0)}.charAt,nr=function(t,e,n){return e+(n?er(t,e).length:1)},ir=function(t,e){var n=t.exec;if("function"==typeof n){var i=n.call(t,e);if("object"!=typeof i)throw TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==st(t))throw TypeError("RegExp#exec called on incompatible receiver");return Xi.call(t,e)},rr=Math.max,or=Math.min,ar=Math.floor,sr=/\$([$&'`]|\d\d?|<[^>]*>)/g,cr=/\$([$&'`]|\d\d?)/g,lr=function(t){return void 0===t?t:String(t)};Zi("replace",2,(function(t,e,n,i){var r=i.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,o=i.REPLACE_KEEPS_$0,a=r?"$":"$0";return[function(n,i){var r=Ct(this),o=null==n?void 0:n[t];return void 0!==o?o.call(n,r,i):e.call(String(r),n,i)},function(t,i){if(!r&&o||"string"==typeof i&&-1===i.indexOf(a)){var c=n(e,t,this,i);if(c.done)return c.value}var l=w(t),u=String(this),d="function"==typeof i;d||(i=String(i));var f=l.global;if(f){var p=l.unicode;l.lastIndex=0}for(var h=[];;){var v=ir(l,u);if(null===v)break;if(h.push(v),!f)break;""===String(v[0])&&(l.lastIndex=nr(u,Pt(l.lastIndex),p))}for(var g="",b=0,m=0;m<h.length;m++){v=h[m];for(var _=String(v[0]),y=rr(or(It(v.index),u.length),0),C=[],x=1;x<v.length;x++)C.push(lr(v[x]));var E=v.groups;if(d){var $=[_].concat(C,y,u);void 0!==E&&$.push(E);var S=String(i.apply(void 0,$))}else S=s(_,u,y,C,E,i);y>=b&&(g+=u.slice(b,y)+S,b=y+_.length)}return g+u.slice(b)}];function s(t,n,i,r,o,a){var s=i+t.length,c=r.length,l=cr;return void 0!==o&&(o=pe(o),l=sr),e.call(a,l,(function(e,a){var l;switch(a.charAt(0)){case"$":return"$";case"&":return t;case"`":return n.slice(0,i);case"'":return n.slice(s);case"<":l=o[a.slice(1,-1)];break;default:var u=+a;if(0===u)return e;if(u>c){var d=ar(u/10);return 0===d?e:d<=c?void 0===r[d-1]?a.charAt(1):r[d-1]+a.charAt(1):e}l=r[u-1]}return void 0===l?"":l}))}}));var ur=B("match"),dr=[].push,fr=Math.min,pr=!f((function(){return!RegExp(4294967295,"y")}));Zi("split",2,(function(t,e,n){var i;return i="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,n){var i=String(Ct(this)),r=void 0===n?4294967295:n>>>0;if(0===r)return[];if(void 0===t)return[i];if(!function(t){var e;return h(t)&&(void 0!==(e=t[ur])?!!e:"RegExp"==st(t))}(t))return e.call(i,t,r);for(var o,a,s,c=[],l=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),u=0,d=new RegExp(t.source,l+"g");(o=Xi.call(d,i))&&!((a=d.lastIndex)>u&&(c.push(i.slice(u,o.index)),o.length>1&&o.index<i.length&&dr.apply(c,o.slice(1)),s=o[0].length,u=a,c.length>=r));)d.lastIndex===o.index&&d.lastIndex++;return u===i.length?!s&&d.test("")||c.push(""):c.push(i.slice(u)),c.length>r?c.slice(0,r):c}:"0".split(void 0,0).length?function(t,n){return void 0===t&&0===n?[]:e.call(this,t,n)}:e,[function(e,n){var r=Ct(this),o=null==e?void 0:e[t];return void 0!==o?o.call(e,r,n):i.call(String(r),e,n)},function(t,r){var o=n(i,t,this,r,i!==e);if(o.done)return o.value;var a=w(t),s=String(this),c=hn(a,RegExp),l=a.unicode,u=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(pr?"y":"g"),d=new c(pr?a:"^(?:"+a.source+")",u),f=void 0===r?4294967295:r>>>0;if(0===f)return[];if(0===s.length)return null===ir(d,s)?[s]:[];for(var p=0,h=0,v=[];h<s.length;){d.lastIndex=pr?h:0;var g,b=ir(d,pr?s:s.slice(h));if(null===b||(g=fr(Pt(d.lastIndex+(pr?0:h)),s.length))===p)h=nr(s,h,l);else{if(v.push(s.slice(p,h)),v.length===f)return v;for(var m=1;m<=b.length-1;m++)if(v.push(b[m]),v.length===f)return v;h=p=g}}return v.push(s.slice(p)),v}]}),!pr);var hr,vr=Ne.trim;ee({target:"String",proto:!0,forced:(hr="trim",f((function(){return!!Te[hr]()||" "!=" "[hr]()||Te[hr].name!==hr})))},{trim:function(){return vr(this)}});var gr=Array.isArray||function(t){return"Array"==st(t)},br=B("species"),mr=function(t,e){var n;return gr(t)&&("function"!=typeof(n=t.constructor)||n!==Array&&!gr(n.prototype)?h(n)&&null===(n=n[br])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===e?0:e)},wr=function(t,e,n){var i=_(e);i in t?C.f(t,i,x(0,n)):t[i]=n},_r=B("species"),yr=function(t){return li>=51||!f((function(){var e=[];return(e.constructor={})[_r]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},Cr=yr("splice"),xr=ae("splice",{ACCESSORS:!0,0:0,1:2}),Er=Math.max,$r=Math.min;ee({target:"Array",proto:!0,forced:!Cr||!xr},{splice:function(t,e){var n,i,r,o,a,s,c=pe(this),l=Pt(c.length),u=Mt(t,l),d=arguments.length;if(0===d?n=i=0:1===d?(n=0,i=l-u):(n=d-2,i=$r(Er(It(e),0),l-u)),l+n-i>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(r=mr(c,i),o=0;o<i;o++)(a=u+o)in c&&wr(r,o,c[a]);if(r.length=i,n<i){for(o=u;o<l-i;o++)s=o+n,(a=o+i)in c?c[s]=c[a]:delete c[s];for(o=l;o>l-i+n;o--)delete c[o-1]}else if(n>i)for(o=l-i;o>u;o--)s=o+n-1,(a=o+i-1)in c?c[s]=c[a]:delete c[s];for(o=0;o<n;o++)c[o+u]=arguments[o+2];return c.length=l-i+n,r}});function Sr(t){var e=window.$BpGlobalWidgetHook;if(e)for(var n=0;n<e.length;n++)e[n]&&e[n](t)}var Or=Object.freeze({__proto__:null,addWidgetShake:function(t){window.$BpGlobalWidgetHook||(window.$BpGlobalWidgetHook=[]);var e=window.$BpGlobalWidgetHook;e.indexOf(t)<0&&e.push(t)},removeWidgetShake:function(t){var e=window.$BpGlobalWidgetHook;e&&e.indexOf(t)>=0&&e.splice(0,1)},callWidgetShake:Sr});function kr(t){var e=window.getComputedStyle(t,null);return e=(e=e?e["transition-duration"]:"0.1s").split(",")[0],e=n.string.trim(e),e=n.string.replace(e,"s",""),e=parseFloat(e),e=Math.ceil(1e3*e)||100}function jr(t){return"touchmove"==t.type||"mousewheel"==t.type||t.preventDefault(),!1}function Tr(t){t.hasClass("bp-widget__bodyFixscroll")&&$("body").addClass("bp-widget__fixscroll");var e=t.attr("data-htmlp");if(e.length>0){var i=n.string.replace(e,"px","");Sr(i=parseInt(i)||0),$("html").css("padding-right",e)}}function Ir(t,i,r,o,a){var c,l=this,u=$(t);if(r&&((c=u)&&!n.dom.isDom(c)&&(c=c[0]),c&&(n.utils.browserIsMobile()?(n.dom.removeEventListener(c,"touchmove",jr),n.dom.addEventListener(c,"touchmove",jr),n.dom.removeEventListener(c,"touchup",jr),n.dom.addEventListener(c,"touchup",jr),n.dom.removeEventListener(c,"touchdown",jr),n.dom.addEventListener(c,"touchdown",jr)):(n.dom.removeEventListener(c,"mousewheel",jr),n.dom.addEventListener(c,"mousewheel",jr),n.dom.removeEventListener(c,"mouseover",jr),n.dom.addEventListener(c,"mouseover",jr)),n.dom.removeEventListener(c,"click",jr),n.dom.addEventListener(c,"click",jr))),u.hasClass("bp-widget__visible")||u.hasClass("bp-widget__showing"))a&&a();else{!function(t){navigator.userAgent.toLowerCase().indexOf("baidu")>=0&&t.css("backdrop-filter","none")}(u);var d="page"+$(".bp-navbarView_page").length,f=function(t){for(var e=2e3,n=$(".bp-widget[data-mark='".concat(t,"']")),i=0;i<n.length;i++){var r=Number($(n[i]).css("z-index"))||0;r>e&&(e=r)}return e}(d)+2;u.css("z-index",f),u.attr("data-mark",d),u.addClass("bp-widget__showing").removeClass("bp-widget__closing"),i&&u.addClass("bp-widget__maskTmp");var p=!1,h=$("body"),v=$("html");if(o){var g=!1,b=0;(i||r)&&(n.utils.browserIsMobile()||(b=window.innerWidth-n.dom.getViewPort().width),n.dom.getDocumentPort().height>n.dom.getViewPort().height&&(g=!0)),g?(h.addClass("bp-widget__fixscroll"),b>0&&(Sr(b),v.css("padding-right",b+"px")),p=!0,u.addClass("bp-widget__willFix")):p=h.hasClass("bp-widget__fixscroll")}p?navigator.userAgent.indexOf("Firefox")>=0&&u.css("overflow-y","scroll"):navigator.userAgent.indexOf("Firefox")>=0&&u.css("overflow-y",""),h.hasClass("bp-widget__fixscroll")&&u.addClass("bp-widget__bodyFixscroll");var m,w=v.css("padding-right");if(w&&w.length>0&&u.attr("data-htmlp",w),i)for(var _=Pr(d),y=_.length-1;y>=0;y--){var C=_[y].el;if(C.hasClass("bp-widget__mask")&&!u[0].isEqualNode(C[0])){m=C;break}}e.dom.probeDom(200,function(){return s(this,l),0==window.innerWidth-n.dom.getViewPort().width}.bind(this),function(){var t=this;s(this,l),n.utils.sleep(0).then(function(){s(this,t),u.addClass("bp-widget__invisible"),u.removeClass("bp-widget__maskTmp"),i&&(m||u.addClass("bp-widget__mask")),u.css("display","inherit")}.bind(this)).then(function(){if(s(this,t),u.hasClass("bp-widget__closing"))return Promise.reject();var e=kr(u[0])||100;return u.removeClass("bp-widget__invisible").addClass("bp-widget__visible"),e}.bind(this)).then(function(e){return s(this,t),n.utils.sleep(e)}.bind(this)).then(function(){if(s(this,t),u.removeClass("bp-widget__showing"),u.hasClass("bp-widget__closing")||u.hasClass("bp-widget__invisible"))return Promise.reject();i&&m?u.addClass("bp-widget__mask").addClass("bp-widget__maskNoAminate"):i&&u.addClass("bp-widget__mask"),m&&m.removeClass("bp-widget__mask").addClass("bp-widget__maskTmp").addClass("bp-widget__maskNoAminate"),a&&a()}.bind(this)).catch(function(){s(this,t)}.bind(this))}.bind(this))}}function Ar(t){var e="page"+$(".bp-navbarView_page").length,n=$("".concat(t||".bp-apiClass"));if(n.length>0){n.remove();for(var i=Pr(e),r=0;r<i.length;r++){var o=i[r].el;if(o.hasClass("bp-widget__mask"))return;if(o.hasClass("bp-widget__maskTmp"))return void o.removeClass("bp-widget__maskTmp").addClass("bp-widget__mask").removeClass("bp-widget__maskNoAminate")}!function(){$("body").removeClass("bp-widget__fixscroll");var t=$("html").css("padding-right");t&&t.length>0&&(Sr(0),$("html").css("padding-right",""))}()}}function Pr(t){for(var e=this,n=$(".bp-widget[data-mark='".concat(t,"']")),i=[],r=0;r<n.length;r++){var o=$(n[r]),a=Number(o.css("z-index"))||2e3;i.push({zIndex:a,el:o})}return i.sort(function(t,n){return s(this,e),t.zIndex==n.zIndex?0:t.zIndex>n.zIndex?1:-1}.bind(this)),i}function Rr(t){window.$BpGlobalDialogComponents=n.utils.mergeMap(t)}function Nr(){return window.$BpGlobalDialogComponents}function Mr(t){var e=this;t?t.vm.hide().then(function(n){s(this,e),$(".".concat(t.id)).remove()}.bind(this)):Ar(".bp-alertClass")}var Lr=Mr,Fr=Mr;var Br=Object.freeze({__proto__:null,hideDialog:Mr,hideAlert:Lr,hideConfirm:Fr,showAlert:function(t){var e=this,r=Nr().alert;if(!r)throw new Error("dialog alert component is null");"string"!=typeof t&&"number"!=typeof t||(t={content:t.toString()}),t.title=t.title||"",t=n.utils.mergeMap(r.data(),t);var o=n.utils.mergeMap(r,{data:function(){return s(this,e),t}.bind(this)}),a="c"+n.crypt.uuid();$('<div id="'.concat(a,'"></div>')).appendTo($("body"));var c=new i({render:function(n){var i=this;return s(this,e),n(o,{class:["bp-apiClass","bp-alertClass",a],on:{confirm:function(){var e=this;s(this,i),t.confirm?t.confirm({vm:c.$children[0].$children[0],id:a}):c.$children[0].$children[0].hide().then(function(t){s(this,e),$(".".concat(a)).remove()}.bind(this))}.bind(this)}})}.bind(this)}).$mount("#".concat(a));return c.$children[0].$children[0].show().then(function(t){s(this,e)}.bind(this)),{vm:c.$children[0].$children[0],id:a}},showConfirm:function(t){var e=this,r=Nr().confirm;if(!r)throw new Error("dialog confirm component is null");"string"==typeof t&&(t={content:t}),t.title=t.title||"",t=n.utils.mergeMap(r.data(),t);var o=n.utils.mergeMap(r,{data:function(){return s(this,e),t}.bind(this)}),a="c"+n.crypt.uuid();$('<div id="'.concat(a,'"></div>')).appendTo($("body"));var c=new i({render:function(n){var i=this;return s(this,e),n(o,{class:["bp-apiClass","bp-alertClass",a],on:{confirm:function(){var e=this;s(this,i),t.confirm?t.confirm({vm:c.$children[0].$children[0],id:a}):c.$children[0].$children[0].hide().then(function(t){s(this,e),$(".".concat(a)).remove()}.bind(this))}.bind(this),cancel:function(){var e=this;s(this,i),t.cancel?t.cancel({vm:c.$children[0].$children[0],id:a}):c.$children[0].$children[0].hide().then(function(t){s(this,e),$(".".concat(a)).remove()}.bind(this))}.bind(this)}})}.bind(this)}).$mount("#".concat(a));return c.$children[0].$children[0].show().then(function(t){s(this,e)}.bind(this)),{vm:c.$children[0].$children[0],id:a}},showWidget:function(t){var r=this;if(!t||!e.dom.isVueComponent(t))throw new Error("component is null or not a Component");var o="c"+n.crypt.uuid();$('<div id="'.concat(o,'"></div>')).appendTo($("body"));var a=new i({render:function(e){var n=this;return s(this,r),e(t,{"update:visible":function(t){s(this,n),t||$(".".concat(o)).remove()}.bind(this)})}.bind(this)}).$mount("#".concat(o));return a.$children[0].$children[0].show().then(function(t){s(this,r)}.bind(this)),{vm:a.$children[0].$children[0],id:o}}}),Dr="$BpGlobalLoadingTimeout",Vr="$BpGlobalLoading";function zr(t,e){window[Vr]=null}var Wr=Object.freeze({__proto__:null,isLoadingVisible:function(){return $(".bp-loadingClass").length>0},hideLoading:function(){window[Dr]&&(clearTimeout(window[Dr].tm),window[Dr]=null),window[Vr]&&window[Vr].$children[0].hide()},showLoading:function(t){var r=this;e.router.off("routeChanged",zr),e.router.on("routeChanged",zr),t||(t="");var o=Nr().loading;if(!o)throw new Error("dialog loading component is null");if(!window[Vr]){var a="c"+n.crypt.uuid();$('<div id="'.concat(a,'"></div>')).appendTo($("body"));var c=new i({render:function(t){return s(this,r),t(o,{class:["bp-apiClass","bp-loadingClass",a]})}.bind(this)}).$mount("#".concat(a));window[Vr]=c.$children[0]}"string"!=typeof t&&"number"!=typeof t||(t={content:t.toString()}),t.delay=t.delay||0,t.delay<0&&(t.delay=0);var l=Date.now();window[Dr]&&(window[Dr].now>l+t.delay?(clearTimeout(window[Dr].tm),window[Dr]=null):window[Dr].cfg=n.utils.mergeMap(t)),l+=t.delay;var u=setTimeout(function(){s(this,r);var t=window[Dr].cfg;window[Dr]=null,t=n.utils.mergeMap(o.data(),t),window[Vr].$data.content=t.content,window[Vr].$children[0].show()}.bind(this),t.delay);window[Dr]={tm:u,now:l,cfg:n.utils.mergeMap(t)}}});var Ur,Gr=Object.freeze({__proto__:null,showToast:function(t){var e=this;t||(t="");var r=Nr().toast;if(!r)throw new Error("dialog toast component is null");"string"!=typeof t&&"number"!=typeof t||(t={content:t.toString()}),t.durable=t.durable||0,t.pos=t.pos||"top",t.durable<0&&(t.durable=0),0==t.durable&&(t.durable=4e3);var o="c"+n.crypt.uuid();$('<div id="'.concat(o,'"></div>')).appendTo($("body"));var a=new i({render:function(n){return s(this,e),n(r,{class:["bp-apiClass",o,"center"==t.pos?"bp-toast__center":""]})}.bind(this)}).$mount("#".concat(o));a.$children[0].$data.content=t.content,a.$children[0].$data.icon=t.icon,a.$children[0].$children[0].show().then(function(t){s(this,e)}.bind(this));var c=a.$children[0].$children[0];setTimeout(function(){var t=this;s(this,e);c&&c.hide().then(function(e){s(this,t),o&&o.length>0&&$("."+o).remove()}.bind(this))}.bind(this),t.durable)}}),Xr=a(a(a({},Br),Wr),Gr);function qr(t){qr.installed&&Ur===t||(qr.installed=!0,Ur=t,Object.defineProperty(t.prototype,"$bpWidget",{get:function(){return Xr}}))}var Hr={components:{},props:{visible:Boolean,mask:{default:!0,type:Boolean},maskClose:{default:!1,type:Boolean},preventEvent:{default:!0,type:Boolean},hideBodyScroll:{default:!0,type:Boolean},pageClass:String|Array,pageStyle:String|Array|Object},watch:{visible:function(t){var e=this;t?this.show().then(function(){s(this,e)}.bind(this)):this.hide().then(function(){s(this,e)}.bind(this))}},mounted:function(){var t=this;this.visible&&this.show().then(function(){s(this,t)}.bind(this))},beforeDestroy:function(){var t=this;this.visible&&this.hide().then(function(){s(this,t)}.bind(this))},methods:{show:function(){var t=this;return new Promise(function(e){var n=this;s(this,t),Ir(this.$el,this.mask,this.preventEvent,this.hideBodyScroll,function(){s(this,n),this.$emit("update:visible",!0),e()}.bind(this))}.bind(this))},hide:function(){var t=this;return new Promise(function(e){var n=this;s(this,t),function(t,e){var n=$(t);if(n.hasClass("bp-widget__invisible")||n.hasClass("bp-widget__closing"))e&&e();else{var i="page"+$(".bp-navbarView_page").length;n.addClass("bp-widget__closing").removeClass("bp-widget__showing"),n.removeClass("bp-widget__visible").addClass("bp-widget__invisible"),n.attr("data-mark","");var r,o,a=Number(n.css("z-index"))||0,s=Pr(i),c=!1;if(s.length)for(var l=s.length-1;l>=0;l--){var u=s[l].el,d=s[l].zIndex;"none"===u[0].style.display||u.hasClass("bp-widget__closing")||u.hasClass("bp-widget__invisible")||(c=!0,!r&&d<a&&(u.hasClass("bp-widget__mask")||u.hasClass("bp-widget__maskTmp"))&&(r=u),!o&&d>a&&(o=u))}c||($("body").removeClass("bp-widget__fixscroll"),Sr(0),$("html").css("padding-right","")),!o&&r&&r.removeClass("bp-widget__maskTmp").addClass("bp-widget__maskNoAminate").addClass("bp-widget__mask");var f=kr(n[0])||100;setTimeout((function(){n.css("display","none"),n.removeClass("bp-widget__closing"),n.removeClass("bp-widget__mask"),n.removeClass("bp-widget__maskNoAminate"),!o&&r&&r.removeClass("bp-widget__maskNoAminate"),e&&e()}),f)}}(this.$el,function(){s(this,n),this.$emit("update:visible",!1),e()}.bind(this))}.bind(this))},onClickMask:function(){var t=this;this.maskClose&&this.hide().then(function(e){s(this,t)}.bind(this))}}},Kr=B("isConcatSpreadable"),Yr=li>=51||!f((function(){var t=[];return t[Kr]=!1,t.concat()[0]!==t})),Jr=yr("concat"),Qr=function(t){if(!h(t))return!1;var e=t[Kr];return void 0!==e?!!e:gr(t)};function Zr(t,e,n,i,r,o,a,s,c,l){"boolean"!=typeof a&&(c=s,s=a,a=!1);var u,d="function"==typeof n?n.options:n;if(t&&t.render&&(d.render=t.render,d.staticRenderFns=t.staticRenderFns,d._compiled=!0,r&&(d.functional=!0)),i&&(d._scopeId=i),o?(u=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,c(t)),t&&t._registeredComponents&&t._registeredComponents.add(o)},d._ssrRegister=u):e&&(u=a?function(t){e.call(this,l(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,s(t))}),u)if(d.functional){var f=d.render;d.render=function(t,e){return u.call(e),f(t,e)}}else{var p=d.beforeCreate;d.beforeCreate=p?[].concat(p,u):[u]}return n}ee({target:"Array",proto:!0,forced:!Yr||!Jr},{concat:function(t){var e,n,i,r,o,a=pe(this),s=mr(a,0),c=0;for(e=-1,i=arguments.length;e<i;e++)if(Qr(o=-1===e?a:arguments[e])){if(c+(r=Pt(o.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n<r;n++,c++)n in o&&wr(s,c,o[n])}else{if(c>=9007199254740991)throw TypeError("Maximum allowed index exceeded");wr(s,c++,o)}return s.length=c,s}});var to=Hr,eo=function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"bp-widget",on:{click:this.onClickMask}},[e("div",{staticClass:"bp-widget__content",class:this.pageClass,style:this.pageStyle},[this._t("default")],2)])};eo._withStripped=!0;var no=Zr({render:eo,staticRenderFns:[]},void 0,to,void 0,!1,void 0,!1,void 0,void 0,void 0),io={components:{bpIcon:e.VueObject.bpIcon,widget:no},props:{visible:Boolean,mask:{default:!0,type:Boolean},maskClose:Boolean,pageClass:String|Array,pageStyle:String|Array|Object,showClose:{default:!0,type:Boolean},title:String},data:function(){return{visibleReal:!1,footClass:null}},watch:{visible:function(t){this.visibleReal=t},visibleReal:function(t){this.$emit("update:visible",t)}},beforeMount:function(){this.visibleReal=this.visible;var t=this.$slots.foot;if(t&&t[0]&&t[0].children){for(var e=0,n=0;n<t[0].children.length;n++)t[0].children[n].tag&&e++;1==e?this.footClass="bp-dialog__footOneButton":2==e?this.footClass="bp-dialog__footTwoButton":3==e&&(this.footClass="bp-dialog__footThreeButton")}},beforeDestroy:function(){},mounted:function(){},methods:{show:function(){return this.$refs.widget.show()},hide:function(){return this.$refs.widget.hide()}}},ro=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("widget",{ref:"widget",staticClass:"bp-dialog",attrs:{visible:t.visibleReal,maskClose:t.maskClose,mask:t.mask,pageClass:t.pageClass,pageStyle:t.pageStyle,preventEvent:!0},on:{"update:visible":function(e){t.visibleReal=e}}},[t.$slots.title?n("div",{staticClass:"bp-dialog__title bp-ellipsis",on:{click:function(t){t.stopPropagation()}}},[t._t("title")],2):t.title?n("div",{staticClass:"bp-dialog__title bp-ellipsis",on:{click:function(t){t.stopPropagation()}}},[t._v(t._s(t.title))]):t._e(),t._v(" "),n("div",{staticClass:"bp-dialog__main",on:{click:function(t){t.stopPropagation()}}},[t._t("default")],2),t._v(" "),t.$slots.foot?n("div",{staticClass:"bp-dialog__foot",class:t.footClass,on:{click:function(t){t.stopPropagation()}}},[t._t("foot")],2):t._e(),t._v(" "),t.showClose?n("bp-icon",{staticClass:"bp-dialog__close",attrs:{name:"bp-dialog_close"},on:{click:function(e){e.stopPropagation(),t.hide().then((function(t){}))}}}):t._e()],1)};ro._withStripped=!0;var oo=Zr({render:ro,staticRenderFns:[]},void 0,io,void 0,!1,void 0,!1,void 0,void 0,void 0),ao={components:{bpDialog:oo},data:function(){return{title:"",content:"",okText:"确认"}}},so=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("bp-dialog",{attrs:{title:t.title,showClose:!1}},[t._v("\n "+t._s(t.content)+"\n "),n("div",{attrs:{slot:"foot"},slot:"foot"},[n("button",{on:{click:function(e){return t.$emit("confirm")}}},[t._v(t._s(t.okText))])])])};so._withStripped=!0;var co=Zr({render:so,staticRenderFns:[]},void 0,ao,void 0,!1,void 0,!1,void 0,void 0,void 0),lo={components:{bpDialog:oo},data:function(){return{title:"",content:"",okText:"确认",cancelText:"取消"}}},uo=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("bp-dialog",{attrs:{title:t.title,showClose:!1}},[t._v("\n "+t._s(t.content)+"\n "),n("div",{attrs:{slot:"foot"},slot:"foot"},[n("button",{staticStyle:{"font-weight":"500"},on:{click:function(e){return t.$emit("cancel")}}},[t._v(t._s(t.cancelText))]),t._v(" "),n("button",{on:{click:function(e){return t.$emit("confirm")}}},[t._v(t._s(t.okText))])])])};uo._withStripped=!0;var fo=Zr({render:uo,staticRenderFns:[]},void 0,lo,void 0,!1,void 0,!1,void 0,void 0,void 0),po={components:{bpIcon:e.VueObject.bpIcon,widget:no},data:function(){return{content:""}}},ho=function(){var t=this.$createElement,e=this._self._c||t;return e("widget",{ref:"widget",staticClass:"bp-loading",attrs:{mask:!1,preventEvent:!0}},[e("div",{staticClass:"bp-loading__main"},[e("bp-icon",{attrs:{name:"loading"}})],1),this._v(" "),e("div",{staticClass:"bp-loading__text"},[this._v("\n "+this._s(this.content)+"\n ")])])};ho._withStripped=!0;var vo=Zr({render:ho,staticRenderFns:[]},void 0,po,void 0,!1,void 0,!1,void 0,void 0,void 0),go={components:{bpIcon:e.VueObject.bpIcon,widget:no},data:function(){return{content:"",icon:null}}},bo=function(){var t=this.$createElement,e=this._self._c||t;return e("widget",{ref:"widget",staticClass:"bp-toast",attrs:{mask:!1,preventEvent:!1,hideBodyScroll:!1}},[e("div",[this.icon?e("div",{staticClass:"bp-toast__main"},[e("bp-icon",{attrs:{name:this.icon}})],1):this._e(),this._v(" "),e("div",{staticClass:"bp-toast__text"},[this._v("\n "+this._s(this.content)+"\n ")])])])};bo._withStripped=!0;var mo=Zr({render:bo,staticRenderFns:[]},void 0,go,void 0,!1,void 0,!1,void 0,void 0,void 0);function wo(t,e){var n=this;Ar(),setTimeout(function(){s(this,n);var t=$(".bp-navbarView_page").length,e=$(".bp-widget[data-mark='".concat("page"+t,"']"));if(0==e.length)$("body").removeClass("bp-widget__fixscroll"),$("html").css("padding-right","");else{for(var i=0;i<e.length;i++){var r=$(e[i]);if(r.hasClass("bp-widget__mask")&&r.hasClass("bp-widget__visible"))return void Tr(r)}$("body").removeClass("bp-widget__fixscroll"),$("html").css("padding-right","")}}.bind(this),800)}function _o(){e.icons.registerAliasIcon("bp-dialog_close","cancel"),Rr({alert:co,confirm:fo,loading:vo,toast:mo}),e.router.off("routeChanged",wo).on("routeChanged",wo)}_o();var yo={init:_o,VuePlugin:function(){return{install:qr}},hook:Or,registerDialogComponents:Rr,apiWidget:Xr,bpDialog:oo,bpWidget:no};module.exports=yo; |
/*! | ||
* bpui dialog v0.1.21 | ||
* bpui dialog v0.1.22 | ||
* Copyright (c) 2020 Copyright bpoint.lee@live.com All Rights Reserved. | ||
* Released under the MIT License. | ||
*/ | ||
import t from"@bpui/libs";import{string as e,utils as n,dom as r,crypt as i}from"febs-browser";import o from"vue";function a(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function c(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?s(Object(n),!0).forEach((function(e){a(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function l(t,e){if(t!==e)throw new TypeError("Cannot instantiate an arrow function")}var u="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function d(t,e){return t(e={exports:{}},e.exports),e.exports}var f=function(t){return t&&t.Math==Math&&t},h=f("object"==typeof globalThis&&globalThis)||f("object"==typeof window&&window)||f("object"==typeof self&&self)||f("object"==typeof u&&u)||Function("return this")(),p=function(t){try{return!!t()}catch(t){return!0}},v=!p((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),g=function(t){return"object"==typeof t?null!==t:"function"==typeof t},b=h.document,m=g(b)&&g(b.createElement),w=function(t){return m?b.createElement(t):{}},_=!v&&!p((function(){return 7!=Object.defineProperty(w("div"),"a",{get:function(){return 7}}).a})),y=function(t){if(!g(t))throw TypeError(String(t)+" is not an object");return t},x=function(t,e){if(!g(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!g(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!g(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!g(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")},C=Object.defineProperty,E={f:v?C:function(t,e,n){if(y(t),e=x(e,!0),y(n),_)try{return C(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},S=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},O=v?function(t,e,n){return E.f(t,e,S(1,n))}:function(t,e,n){return t[e]=n,t},k=function(t,e){try{O(h,t,e)}catch(n){h[t]=e}return e},j=h["__core-js_shared__"]||k("__core-js_shared__",{}),T=d((function(t){(t.exports=function(t,e){return j[t]||(j[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.5",mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),I={}.hasOwnProperty,A=function(t,e){return I.call(t,e)},P=0,R=Math.random(),N=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++P+R).toString(36)},M=!!Object.getOwnPropertySymbols&&!p((function(){return!String(Symbol())})),F=M&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,L=T("wks"),z=h.Symbol,B=F?z:z&&z.withoutSetter||N,D=function(t){return A(L,t)||(M&&A(z,t)?L[t]=z[t]:L[t]=B("Symbol."+t)),L[t]},V={};V[D("toStringTag")]="z";var W="[object z]"===String(V),U=Function.toString;"function"!=typeof j.inspectSource&&(j.inspectSource=function(t){return U.call(t)});var G,X,H,K=j.inspectSource,Y=h.WeakMap,q="function"==typeof Y&&/native code/.test(K(Y)),J=T("keys"),Q=function(t){return J[t]||(J[t]=N(t))},Z={},tt=h.WeakMap;if(q){var et=new tt,nt=et.get,rt=et.has,it=et.set;G=function(t,e){return it.call(et,t,e),e},X=function(t){return nt.call(et,t)||{}},H=function(t){return rt.call(et,t)}}else{var ot=Q("state");Z[ot]=!0,G=function(t,e){return O(t,ot,e),e},X=function(t){return A(t,ot)?t[ot]:{}},H=function(t){return A(t,ot)}}var at={set:G,get:X,has:H,enforce:function(t){return H(t)?X(t):G(t,{})},getterFor:function(t){return function(e){var n;if(!g(e)||(n=X(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}},st=d((function(t){var e=at.get,n=at.enforce,r=String(String).split("String");(t.exports=function(t,e,i,o){var a=!!o&&!!o.unsafe,s=!!o&&!!o.enumerable,c=!!o&&!!o.noTargetGet;"function"==typeof i&&("string"!=typeof e||A(i,"name")||O(i,"name",e),n(i).source=r.join("string"==typeof e?e:"")),t!==h?(a?!c&&t[e]&&(s=!0):delete t[e],s?t[e]=i:O(t,e,i)):s?t[e]=i:k(e,i)})(Function.prototype,"toString",(function(){return"function"==typeof this&&e(this).source||K(this)}))})),ct={}.toString,lt=function(t){return ct.call(t).slice(8,-1)},ut=D("toStringTag"),dt="Arguments"==lt(function(){return arguments}()),ft=W?lt:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),ut))?n:dt?lt(e):"Object"==(r=lt(e))&&"function"==typeof e.callee?"Arguments":r},ht=W?{}.toString:function(){return"[object "+ft(this)+"]"};W||st(Object.prototype,"toString",ht,{unsafe:!0});var pt=function(){var t=y(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},vt=RegExp.prototype,gt=vt.toString,bt=p((function(){return"/a/b"!=gt.call({source:"a",flags:"b"})})),mt="toString"!=gt.name;(bt||mt)&&st(RegExp.prototype,"toString",(function(){var t=y(this),e=String(t.source),n=t.flags;return"/"+e+"/"+String(void 0===n&&t instanceof RegExp&&!("flags"in vt)?pt.call(t):n)}),{unsafe:!0});var wt={}.propertyIsEnumerable,_t=Object.getOwnPropertyDescriptor,yt={f:_t&&!wt.call({1:2},1)?function(t){var e=_t(this,t);return!!e&&e.enumerable}:wt},xt="".split,Ct=p((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==lt(t)?xt.call(t,""):Object(t)}:Object,$t=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},Et=function(t){return Ct($t(t))},St=Object.getOwnPropertyDescriptor,Ot={f:v?St:function(t,e){if(t=Et(t),e=x(e,!0),_)try{return St(t,e)}catch(t){}if(A(t,e))return S(!yt.f.call(t,e),t[e])}},kt=h,jt=function(t){return"function"==typeof t?t:void 0},Tt=function(t,e){return arguments.length<2?jt(kt[t])||jt(h[t]):kt[t]&&kt[t][e]||h[t]&&h[t][e]},It=Math.ceil,At=Math.floor,Pt=function(t){return isNaN(t=+t)?0:(t>0?At:It)(t)},Rt=Math.min,Nt=function(t){return t>0?Rt(Pt(t),9007199254740991):0},Mt=Math.max,Ft=Math.min,Lt=function(t,e){var n=Pt(t);return n<0?Mt(n+e,0):Ft(n,e)},zt=function(t){return function(e,n,r){var i,o=Et(e),a=Nt(o.length),s=Lt(r,a);if(t&&n!=n){for(;a>s;)if((i=o[s++])!=i)return!0}else for(;a>s;s++)if((t||s in o)&&o[s]===n)return t||s||0;return!t&&-1}},Bt={includes:zt(!0),indexOf:zt(!1)},Dt=Bt.indexOf,Vt=function(t,e){var n,r=Et(t),i=0,o=[];for(n in r)!A(Z,n)&&A(r,n)&&o.push(n);for(;e.length>i;)A(r,n=e[i++])&&(~Dt(o,n)||o.push(n));return o},Wt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Ut=Wt.concat("length","prototype"),Gt={f:Object.getOwnPropertyNames||function(t){return Vt(t,Ut)}},Xt={f:Object.getOwnPropertySymbols},Ht=Tt("Reflect","ownKeys")||function(t){var e=Gt.f(y(t)),n=Xt.f;return n?e.concat(n(t)):e},Kt=function(t,e){for(var n=Ht(e),r=E.f,i=Ot.f,o=0;o<n.length;o++){var a=n[o];A(t,a)||r(t,a,i(e,a))}},Yt=/#|\.prototype\./,qt=function(t,e){var n=Qt[Jt(t)];return n==te||n!=Zt&&("function"==typeof e?p(e):!!e)},Jt=qt.normalize=function(t){return String(t).replace(Yt,".").toLowerCase()},Qt=qt.data={},Zt=qt.NATIVE="N",te=qt.POLYFILL="P",ee=qt,ne=Ot.f,re=function(t,e){var n,r,i,o,a,s=t.target,c=t.global,l=t.stat;if(n=c?h:l?h[s]||k(s,{}):(h[s]||{}).prototype)for(r in e){if(o=e[r],i=t.noTargetGet?(a=ne(n,r))&&a.value:n[r],!ee(c?r:s+(l?".":"#")+r,t.forced)&&void 0!==i){if(typeof o==typeof i)continue;Kt(o,i)}(t.sham||i&&i.sham)&&O(o,"sham",!0),st(n,r,o,t)}},ie=function(t,e){var n=[][t];return!!n&&p((function(){n.call(null,e||function(){throw 1},1)}))},oe=Object.defineProperty,ae={},se=function(t){throw t},ce=function(t,e){if(A(ae,t))return ae[t];e||(e={});var n=[][t],r=!!A(e,"ACCESSORS")&&e.ACCESSORS,i=A(e,0)?e[0]:se,o=A(e,1)?e[1]:void 0;return ae[t]=!!n&&!p((function(){if(r&&!v)return!0;var t={length:-1};r?oe(t,1,{enumerable:!0,get:se}):t[1]=1,n.call(t,i,o)}))},le=Bt.indexOf,ue=[].indexOf,de=!!ue&&1/[1].indexOf(1,-0)<0,fe=ie("indexOf"),he=ce("indexOf",{ACCESSORS:!0,1:0});re({target:"Array",proto:!0,forced:de||!fe||!he},{indexOf:function(t){return de?ue.apply(this,arguments)||0:le(this,t,arguments.length>1?arguments[1]:void 0)}});var pe=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t},ve=function(t){return Object($t(t))},ge=[],be=ge.sort,me=p((function(){ge.sort(void 0)})),we=p((function(){ge.sort(null)})),_e=ie("sort");re({target:"Array",proto:!0,forced:me||!we||!_e},{sort:function(t){return void 0===t?be.call(ve(this)):be.call(ve(this),pe(t))}});var ye,xe=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return y(n),function(t){if(!g(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype")}(r),e?t.call(n,r):n.__proto__=r,n}}():void 0),Ce=function(t,e,n){var r,i;return xe&&"function"==typeof(r=e.constructor)&&r!==n&&g(i=r.prototype)&&i!==n.prototype&&xe(t,i),t},$e=Object.keys||function(t){return Vt(t,Wt)},Ee=v?Object.defineProperties:function(t,e){y(t);for(var n,r=$e(e),i=r.length,o=0;i>o;)E.f(t,n=r[o++],e[n]);return t},Se=Tt("document","documentElement"),Oe=Q("IE_PROTO"),ke=function(){},je=function(t){return"<script>"+t+"<\/script>"},Te=function(){try{ye=document.domain&&new ActiveXObject("htmlfile")}catch(t){}var t,e;Te=ye?function(t){t.write(je("")),t.close();var e=t.parentWindow.Object;return t=null,e}(ye):((e=w("iframe")).style.display="none",Se.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(je("document.F=Object")),t.close(),t.F);for(var n=Wt.length;n--;)delete Te.prototype[Wt[n]];return Te()};Z[Oe]=!0;var Ie=Object.create||function(t,e){var n;return null!==t?(ke.prototype=y(t),n=new ke,ke.prototype=null,n[Oe]=t):n=Te(),void 0===e?n:Ee(n,e)},Ae="\t\n\v\f\r \u2028\u2029\ufeff",Pe="["+Ae+"]",Re=RegExp("^"+Pe+Pe+"*"),Ne=RegExp(Pe+Pe+"*$"),Me=function(t){return function(e){var n=String($t(e));return 1&t&&(n=n.replace(Re,"")),2&t&&(n=n.replace(Ne,"")),n}},Fe={start:Me(1),end:Me(2),trim:Me(3)},Le=Gt.f,ze=Ot.f,Be=E.f,De=Fe.trim,Ve=h.Number,We=Ve.prototype,Ue="Number"==lt(Ie(We)),Ge=function(t){var e,n,r,i,o,a,s,c,l=x(t,!1);if("string"==typeof l&&l.length>2)if(43===(e=(l=De(l)).charCodeAt(0))||45===e){if(88===(n=l.charCodeAt(2))||120===n)return NaN}else if(48===e){switch(l.charCodeAt(1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+l}for(a=(o=l.slice(2)).length,s=0;s<a;s++)if((c=o.charCodeAt(s))<48||c>i)return NaN;return parseInt(o,r)}return+l};if(ee("Number",!Ve(" 0o1")||!Ve("0b1")||Ve("+0x1"))){for(var Xe,He=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof He&&(Ue?p((function(){We.valueOf.call(n)})):"Number"!=lt(n))?Ce(new Ve(Ge(e)),n,He):Ge(e)},Ke=v?Le(Ve):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),Ye=0;Ke.length>Ye;Ye++)A(Ve,Xe=Ke[Ye])&&!A(He,Xe)&&Be(He,Xe,ze(Ve,Xe));He.prototype=We,We.constructor=He,st(h,"Number",He)}function qe(t,e){return RegExp(t,e)}var Je,Qe,Ze={UNSUPPORTED_Y:p((function(){var t=qe("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),BROKEN_CARET:p((function(){var t=qe("^r","gy");return t.lastIndex=2,null!=t.exec("str")}))},tn=RegExp.prototype.exec,en=String.prototype.replace,nn=tn,rn=(Je=/a/,Qe=/b*/g,tn.call(Je,"a"),tn.call(Qe,"a"),0!==Je.lastIndex||0!==Qe.lastIndex),on=Ze.UNSUPPORTED_Y||Ze.BROKEN_CARET,an=void 0!==/()??/.exec("")[1];(rn||an||on)&&(nn=function(t){var e,n,r,i,o=this,a=on&&o.sticky,s=pt.call(o),c=o.source,l=0,u=t;return a&&(-1===(s=s.replace("y","")).indexOf("g")&&(s+="g"),u=String(t).slice(o.lastIndex),o.lastIndex>0&&(!o.multiline||o.multiline&&"\n"!==t[o.lastIndex-1])&&(c="(?: "+c+")",u=" "+u,l++),n=new RegExp("^(?:"+c+")",s)),an&&(n=new RegExp("^"+c+"$(?!\\s)",s)),rn&&(e=o.lastIndex),r=tn.call(a?n:o,u),a?r?(r.input=r.input.slice(l),r[0]=r[0].slice(l),r.index=o.lastIndex,o.lastIndex+=r[0].length):o.lastIndex=0:rn&&r&&(o.lastIndex=o.global?r.index+r[0].length:e),an&&r&&r.length>1&&en.call(r[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(r[i]=void 0)})),r});var sn=nn;re({target:"RegExp",proto:!0,forced:/./.exec!==sn},{exec:sn});var cn=D("species"),ln=!p((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),un="$0"==="a".replace(/./,"$0"),dn=D("replace"),fn=!!/./[dn]&&""===/./[dn]("a","$0"),hn=!p((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),pn=function(t,e,n,r){var i=D(t),o=!p((function(){var e={};return e[i]=function(){return 7},7!=""[t](e)})),a=o&&!p((function(){var e=!1,n=/a/;return"split"===t&&((n={}).constructor={},n.constructor[cn]=function(){return n},n.flags="",n[i]=/./[i]),n.exec=function(){return e=!0,null},n[i](""),!e}));if(!o||!a||"replace"===t&&(!ln||!un||fn)||"split"===t&&!hn){var s=/./[i],c=n(i,""[t],(function(t,e,n,r,i){return e.exec===sn?o&&!i?{done:!0,value:s.call(e,n,r)}:{done:!0,value:t.call(n,e,r)}:{done:!1}}),{REPLACE_KEEPS_$0:un,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:fn}),l=c[0],u=c[1];st(String.prototype,t,l),st(RegExp.prototype,i,2==e?function(t,e){return u.call(t,this,e)}:function(t){return u.call(t,this)})}r&&O(RegExp.prototype[i],"sham",!0)},vn=function(t){return function(e,n){var r,i,o=String($t(e)),a=Pt(n),s=o.length;return a<0||a>=s?t?"":void 0:(r=o.charCodeAt(a))<55296||r>56319||a+1===s||(i=o.charCodeAt(a+1))<56320||i>57343?t?o.charAt(a):r:t?o.slice(a,a+2):i-56320+(r-55296<<10)+65536}},gn={codeAt:vn(!1),charAt:vn(!0)}.charAt,bn=function(t,e,n){return e+(n?gn(t,e).length:1)},mn=function(t,e){var n=t.exec;if("function"==typeof n){var r=n.call(t,e);if("object"!=typeof r)throw TypeError("RegExp exec method returned something other than an Object or null");return r}if("RegExp"!==lt(t))throw TypeError("RegExp#exec called on incompatible receiver");return sn.call(t,e)},wn=Math.max,_n=Math.min,yn=Math.floor,xn=/\$([$&'`]|\d\d?|<[^>]*>)/g,Cn=/\$([$&'`]|\d\d?)/g;pn("replace",2,(function(t,e,n,r){var i=r.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,o=r.REPLACE_KEEPS_$0,a=i?"$":"$0";return[function(n,r){var i=$t(this),o=null==n?void 0:n[t];return void 0!==o?o.call(n,i,r):e.call(String(i),n,r)},function(t,r){if(!i&&o||"string"==typeof r&&-1===r.indexOf(a)){var c=n(e,t,this,r);if(c.done)return c.value}var l=y(t),u=String(this),d="function"==typeof r;d||(r=String(r));var f=l.global;if(f){var h=l.unicode;l.lastIndex=0}for(var p=[];;){var v=mn(l,u);if(null===v)break;if(p.push(v),!f)break;""===String(v[0])&&(l.lastIndex=bn(u,Nt(l.lastIndex),h))}for(var g,b="",m=0,w=0;w<p.length;w++){v=p[w];for(var _=String(v[0]),x=wn(_n(Pt(v.index),u.length),0),C=[],$=1;$<v.length;$++)C.push(void 0===(g=v[$])?g:String(g));var E=v.groups;if(d){var S=[_].concat(C,x,u);void 0!==E&&S.push(E);var O=String(r.apply(void 0,S))}else O=s(_,u,x,C,E,r);x>=m&&(b+=u.slice(m,x)+O,m=x+_.length)}return b+u.slice(m)}];function s(t,n,r,i,o,a){var s=r+t.length,c=i.length,l=Cn;return void 0!==o&&(o=ve(o),l=xn),e.call(a,l,(function(e,a){var l;switch(a.charAt(0)){case"$":return"$";case"&":return t;case"`":return n.slice(0,r);case"'":return n.slice(s);case"<":l=o[a.slice(1,-1)];break;default:var u=+a;if(0===u)return e;if(u>c){var d=yn(u/10);return 0===d?e:d<=c?void 0===i[d-1]?a.charAt(1):i[d-1]+a.charAt(1):e}l=i[u-1]}return void 0===l?"":l}))}}));var $n=D("match"),En=D("species"),Sn=function(t,e){var n,r=y(t).constructor;return void 0===r||null==(n=y(r)[En])?e:pe(n)},On=[].push,kn=Math.min,jn=!p((function(){return!RegExp(4294967295,"y")}));pn("split",2,(function(t,e,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,n){var r,i,o=String($t(this)),a=void 0===n?4294967295:n>>>0;if(0===a)return[];if(void 0===t)return[o];if(!g(r=t)||!(void 0!==(i=r[$n])?i:"RegExp"==lt(r)))return e.call(o,t,a);for(var s,c,l,u=[],d=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),f=0,h=new RegExp(t.source,d+"g");(s=sn.call(h,o))&&!((c=h.lastIndex)>f&&(u.push(o.slice(f,s.index)),s.length>1&&s.index<o.length&&On.apply(u,s.slice(1)),l=s[0].length,f=c,u.length>=a));)h.lastIndex===s.index&&h.lastIndex++;return f===o.length?!l&&h.test("")||u.push(""):u.push(o.slice(f)),u.length>a?u.slice(0,a):u}:"0".split(void 0,0).length?function(t,n){return void 0===t&&0===n?[]:e.call(this,t,n)}:e,[function(e,n){var i=$t(this),o=null==e?void 0:e[t];return void 0!==o?o.call(e,i,n):r.call(String(i),e,n)},function(t,i){var o=n(r,t,this,i,r!==e);if(o.done)return o.value;var a=y(t),s=String(this),c=Sn(a,RegExp),l=a.unicode,u=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(jn?"y":"g"),d=new c(jn?a:"^(?:"+a.source+")",u),f=void 0===i?4294967295:i>>>0;if(0===f)return[];if(0===s.length)return null===mn(d,s)?[s]:[];for(var h=0,p=0,v=[];p<s.length;){d.lastIndex=jn?p:0;var g,b=mn(d,jn?s:s.slice(p));if(null===b||(g=kn(Nt(d.lastIndex+(jn?0:p)),s.length))===h)p=bn(s,p,l);else{if(v.push(s.slice(h,p)),v.length===f)return v;for(var m=1;m<=b.length-1;m++)if(v.push(b[m]),v.length===f)return v;p=h=g}}return v.push(s.slice(h)),v}]}),!jn);var Tn,In=Fe.trim;re({target:"String",proto:!0,forced:(Tn="trim",p((function(){return!!Ae[Tn]()||" "!=" "[Tn]()||Ae[Tn].name!==Tn})))},{trim:function(){return In(this)}});var An,Pn,Rn=Array.isArray||function(t){return"Array"==lt(t)},Nn=D("species"),Mn=function(t,e){var n;return Rn(t)&&("function"!=typeof(n=t.constructor)||n!==Array&&!Rn(n.prototype)?g(n)&&null===(n=n[Nn])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===e?0:e)},Fn=function(t,e,n){var r=x(e);r in t?E.f(t,r,S(0,n)):t[r]=n},Ln=Tt("navigator","userAgent")||"",zn=h.process,Bn=zn&&zn.versions,Dn=Bn&&Bn.v8;Dn?Pn=(An=Dn.split("."))[0]+An[1]:Ln&&(!(An=Ln.match(/Edge\/(\d+)/))||An[1]>=74)&&(An=Ln.match(/Chrome\/(\d+)/))&&(Pn=An[1]);var Vn=Pn&&+Pn,Wn=D("species"),Un=function(t){return Vn>=51||!p((function(){var e=[];return(e.constructor={})[Wn]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},Gn=Un("splice"),Xn=ce("splice",{ACCESSORS:!0,0:0,1:2}),Hn=Math.max,Kn=Math.min;re({target:"Array",proto:!0,forced:!Gn||!Xn},{splice:function(t,e){var n,r,i,o,a,s,c=ve(this),l=Nt(c.length),u=Lt(t,l),d=arguments.length;if(0===d?n=r=0:1===d?(n=0,r=l-u):(n=d-2,r=Kn(Hn(Pt(e),0),l-u)),l+n-r>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(i=Mn(c,r),o=0;o<r;o++)(a=u+o)in c&&Fn(i,o,c[a]);if(i.length=r,n<r){for(o=u;o<l-r;o++)s=o+n,(a=o+r)in c?c[s]=c[a]:delete c[s];for(o=l;o>l-r+n;o--)delete c[o-1]}else if(n>r)for(o=l-r;o>u;o--)s=o+n-1,(a=o+r-1)in c?c[s]=c[a]:delete c[s];for(o=0;o<n;o++)c[o+u]=arguments[o+2];return c.length=l-r+n,i}});function Yn(t){var e=window.$BpGlobalWidgetHook;if(e)for(var n=0;n<e.length;n++)e[n]&&e[n](t)}var qn=Object.freeze({__proto__:null,addWidgetShake:function(t){window.$BpGlobalWidgetHook||(window.$BpGlobalWidgetHook=[]);var e=window.$BpGlobalWidgetHook;e.indexOf(t)<0&&e.push(t)},removeWidgetShake:function(t){var e=window.$BpGlobalWidgetHook;e&&e.indexOf(t)>=0&&e.splice(0,1)},callWidgetShake:Yn});function Jn(t){var n=window.getComputedStyle(t,null);return n=(n=n?n["transition-duration"]:"0.1s").split(",")[0],n=e.trim(n),n=e.replace(n,"s",""),n=parseFloat(n),n=Math.ceil(1e3*n)||100}function Qn(t){return"touchmove"==t.type||"mousewheel"==t.type||t.preventDefault(),!1}function Zn(t){t.hasClass("bp-widget__bodyFixscroll")&&$("body").addClass("bp-widget__fixscroll");var n=t.attr("data-htmlp");if(n.length>0){var r=e.replace(n,"px","");Yn(r=parseInt(r)||0),$("html").css("padding-right",n)}}function tr(e,i,o,a,s){var c,u=this,d=$(e);if(o&&((c=d)&&!r.isDom(c)&&(c=c[0]),c&&(n.browserIsMobile()?(r.removeEventListener(c,"touchmove",Qn),r.addEventListener(c,"touchmove",Qn),r.removeEventListener(c,"touchup",Qn),r.addEventListener(c,"touchup",Qn),r.removeEventListener(c,"touchdown",Qn),r.addEventListener(c,"touchdown",Qn)):(r.removeEventListener(c,"mousewheel",Qn),r.addEventListener(c,"mousewheel",Qn),r.removeEventListener(c,"mouseover",Qn),r.addEventListener(c,"mouseover",Qn)),r.removeEventListener(c,"click",Qn),r.addEventListener(c,"click",Qn))),d.hasClass("bp-widget__visible"))s&&s();else{!function(t){navigator.userAgent.toLowerCase().indexOf("baidu")>=0&&t.css("backdrop-filter","none")}(d);var f=!1,h=$("body"),p=$("html");if(a){var v=!1,g=0;(i||o)&&(n.browserIsMobile()?r.getDocumentPort().height>r.getViewPort().height&&(v=!0):(g=window.innerWidth-r.getViewPort().width)>0&&(v=!0)),v?(h.addClass("bp-widget__fixscroll"),g>0&&(Yn(g),p.css("padding-right",g+"px")),f=!0,d.addClass("bp-widget__willFix")):f=h.hasClass("bp-widget__fixscroll")}f?navigator.userAgent.indexOf("Firefox")>=0&&d.css("overflow-y","scroll"):navigator.userAgent.indexOf("Firefox")>=0&&d.css("overflow-y","");var b="page"+$(".bp-navbarView_page").length,m=function(t){for(var e=2e3,n=$(".bp-widget[data-mark='".concat(t,"']")),r=0;r<n.length;r++){var i=Number($(n[r]).css("z-index"))||0;i>e&&(e=i)}return e}(b)+2;d.css("z-index",m),h.hasClass("bp-widget__fixscroll")&&d.addClass("bp-widget__bodyFixscroll");var w=p.css("padding-right");w.length>0&&d.attr("data-htmlp",w);for(var _,y=[],x=$(".bp-widget[data-mark='".concat(b,"']")),C=0;C<x.length;C++){var E=$(x[C]),S=Number(E.css("z-index"))||0;y.push({zIndex:S,el:E})}if(i){y.sort(function(t,e){return l(this,u),t.zIndex==e.zIndex?0:t.zIndex>e.zIndex?1:-1}.bind(this));for(var O=y.length-1;O>=0;O--){var k=y[O].el;if(k.hasClass("bp-widget__mask")&&!d[0].isEqualNode(k[0])){_=k;break}}}t.dom.probeDom(200,function(){return l(this,u),0==window.innerWidth-r.getViewPort().width}.bind(this),function(){var t=this;l(this,u),n.sleep(0).then(function(){l(this,t),d.attr("data-mark",b),d.addClass("bp-widget__invisible"),d.removeClass("bp-widget__maskTmp"),i&&(_||d.addClass("bp-widget__mask")),d.css("display","inherit")}.bind(this)).then(function(){return l(this,t),n.sleep(10)}.bind(this)).then(function(){if(l(this,t),!d.hasClass("bp-widget__closing")){var e=Jn(d[0])||100;return d.removeClass("bp-widget__invisible").addClass("bp-widget__visible"),e}s&&s()}.bind(this)).then(function(e){return l(this,t),n.sleep(e)}.bind(this)).then(function(){l(this,t),d.hasClass("bp-widget__closing")||(i&&_?d.addClass("bp-widget__mask").addClass("bp-widget__maskNoAminate"):i&&d.addClass("bp-widget__mask"),_&&_.removeClass("bp-widget__mask").addClass("bp-widget__maskTmp").addClass("bp-widget__maskNoAminate")),s&&s()}.bind(this))}.bind(this))}}function er(t){var e=this,n="page"+$(".bp-navbarView_page").length,r=$("".concat(t||".bp-apiClass"));if(r.length>0){r.remove();for(var i=[],o=$(".bp-widget[data-mark='".concat(n,"']")),a=0;a<o.length;a++){var s=$(o[a]),c=Number(s.css("z-index"))||0;i.push({zIndex:c,el:s})}i.sort(function(t,n){return l(this,e),t.zIndex==n.zIndex?0:t.zIndex>n.zIndex?-1:1}.bind(this));for(var u=0;u<i.length;u++){var d=i[u].el;if(d.hasClass("bp-widget__mask"))return;if(d.hasClass("bp-widget__maskTmp"))return void d.removeClass("bp-widget__maskTmp").addClass("bp-widget__mask").removeClass("bp-widget__maskNoAminate")}!function(){$("body").removeClass("bp-widget__fixscroll");var t=$("html").css("padding-right");t&&t.length>0&&(Yn(0),$("html").css("padding-right",""))}()}}function nr(t,e){var n=this,r=$(t);if(r.hasClass("bp-widget__invisible"))e&&e();else if(r.hasClass("bp-widget__closing"))e&&e();else{r.addClass("bp-widget__closing");for(var i,o,a="page"+$(".bp-navbarView_page").length,s=Number(r.css("z-index")),c=r.hasClass("bp-widget__mask"),u=r.hasClass("bp-widget__maskTmp"),d=r.hasClass("bp-widget__willFix"),f=[],h=$(".bp-widget[data-mark='".concat(a,"']")),p=0;p<h.length;p++){var v=$(h[p]),g=Number(v.css("z-index"))||0;f.push({zIndex:g,el:v})}if(f.sort(function(t,e){return l(this,n),t.zIndex==e.zIndex?0:t.zIndex>e.zIndex?-1:1}.bind(this)),!u&&c)for(var b=0;b<f.length;b++){var m=f[b].el;if(Number(m.css("z-index"))<s&&(o||(o=m),m.hasClass("bp-widget__maskTmp"))){i=m;break}}r.attr("data-mark",""),r.removeClass("bp-widget__visible").addClass("bp-widget__invisible");var w=Jn(r[0])||100;i&&i.removeClass("bp-widget__maskTmp").addClass("bp-widget__mask"),setTimeout((function(){r.css("display","none"),r.removeClass("bp-widget__mask").removeClass("bp-widget__closing").removeClass("bp-widget__maskNoAminate"),i&&i.removeClass("bp-widget__maskNoAminate"),e&&e(),d&&(o?function(t){t.hasClass("bp-widget__bodyFixscroll")||$("body").removeClass("bp-widget__fixscroll"),t.attr("data-htmlp").length<=0&&(Yn(0),$("html").css("padding-right",""))}(o):($("body").removeClass("bp-widget__fixscroll"),Yn(0),$("html").css("padding-right","")))}),w+10)}}function rr(t){window.$BpGlobalDialogComponents=n.mergeMap(t)}function ir(){return window.$BpGlobalDialogComponents}function or(t){var e=this;t?t.vm.hide().then(function(n){l(this,e),$(".".concat(t.id)).remove()}.bind(this)):er(".bp-alertClass")}var ar=or,sr=or;var cr=Object.freeze({__proto__:null,hideDialog:or,hideAlert:ar,hideConfirm:sr,showAlert:function(t){var e=this,r=ir().alert;if(!r)throw new Error("dialog alert component is null");"string"!=typeof t&&"number"!=typeof t||(t={content:t.toString()}),t.title=t.title||"",t=n.mergeMap(r.data(),t);var a=n.mergeMap(r,{data:function(){return l(this,e),t}.bind(this)}),s="c"+i.uuid();$('<div id="'.concat(s,'"></div>')).appendTo($("body"));var c=new o({render:function(n){var r=this;return l(this,e),n(a,{class:["bp-apiClass","bp-alertClass",s],on:{confirm:function(){var e=this;l(this,r),t.confirm?t.confirm({vm:c.$children[0].$children[0],id:s}):c.$children[0].$children[0].hide().then(function(t){l(this,e),$(".".concat(s)).remove()}.bind(this))}.bind(this)}})}.bind(this)}).$mount("#".concat(s));return c.$children[0].$children[0].show().then(function(t){l(this,e)}.bind(this)),{vm:c.$children[0].$children[0],id:s}},showConfirm:function(t){var e=this,r=ir().confirm;if(!r)throw new Error("dialog confirm component is null");"string"==typeof t&&(t={content:t}),t.title=t.title||"",t=n.mergeMap(r.data(),t);var a=n.mergeMap(r,{data:function(){return l(this,e),t}.bind(this)}),s="c"+i.uuid();$('<div id="'.concat(s,'"></div>')).appendTo($("body"));var c=new o({render:function(n){var r=this;return l(this,e),n(a,{class:["bp-apiClass","bp-alertClass",s],on:{confirm:function(){var e=this;l(this,r),t.confirm?t.confirm({vm:c.$children[0].$children[0],id:s}):c.$children[0].$children[0].hide().then(function(t){l(this,e),$(".".concat(s)).remove()}.bind(this))}.bind(this),cancel:function(){var e=this;l(this,r),t.cancel?t.cancel({vm:c.$children[0].$children[0],id:s}):c.$children[0].$children[0].hide().then(function(t){l(this,e),$(".".concat(s)).remove()}.bind(this))}.bind(this)}})}.bind(this)}).$mount("#".concat(s));return c.$children[0].$children[0].show().then(function(t){l(this,e)}.bind(this)),{vm:c.$children[0].$children[0],id:s}},showWidget:function(e){var n=this;if(!e||!t.dom.isVueComponent(e))throw new Error("component is null or not a Component");var r="c"+i.uuid();$('<div id="'.concat(r,'"></div>')).appendTo($("body"));var a=new o({render:function(t){var i=this;return l(this,n),t(e,{"update:visible":function(t){l(this,i),t||$(".".concat(r)).remove()}.bind(this)})}.bind(this)}).$mount("#".concat(r));return a.$children[0].$children[0].show().then(function(t){l(this,n)}.bind(this)),{vm:a.$children[0].$children[0],id:r}}}),lr="$BpGlobalLoadingTimeout",ur="$BpGlobalLoading";function dr(t,e){window[ur]=null}var fr=Object.freeze({__proto__:null,isLoadingVisible:function(){return $(".bp-loadingClass").length>0},hideLoading:function(){window[lr]&&(clearTimeout(window[lr].tm),window[lr]=null),window[ur]&&window[ur].$children[0].hide()},showLoading:function(e){var r=this;t.router.off("routeChanged",dr),t.router.on("routeChanged",dr),e||(e="");var a=ir().loading;if(!a)throw new Error("dialog loading component is null");if(!window[ur]){var s="c"+i.uuid();$('<div id="'.concat(s,'"></div>')).appendTo($("body"));var c=new o({render:function(t){return l(this,r),t(a,{class:["bp-apiClass","bp-loadingClass",s]})}.bind(this)}).$mount("#".concat(s));window[ur]=c.$children[0]}"string"!=typeof e&&"number"!=typeof e||(e={content:e.toString()}),e.delay=e.delay||0,e.delay<0&&(e.delay=0);var u=Date.now();window[lr]&&(window[lr].now>u+e.delay?(clearTimeout(window[lr].tm),window[lr]=null):window[lr].cfg=n.mergeMap(e)),u+=e.delay;var d=setTimeout(function(){l(this,r);var t=window[lr].cfg;window[lr]=null,t=n.mergeMap(a.data(),t),window[ur].$data.content=t.content,window[ur].$children[0].show()}.bind(this),e.delay);window[lr]={tm:d,now:u,cfg:n.mergeMap(e)}}});var hr,pr=Object.freeze({__proto__:null,showToast:function(t){var e=this;t||(t="");var n=ir().toast;if(!n)throw new Error("dialog toast component is null");"string"!=typeof t&&"number"!=typeof t||(t={content:t.toString()}),t.durable=t.durable||0,t.pos=t.pos||"top",t.durable<0&&(t.durable=0),0==t.durable&&(t.durable=4e3);var r="c"+i.uuid();$('<div id="'.concat(r,'"></div>')).appendTo($("body"));var a=new o({render:function(i){return l(this,e),i(n,{class:["bp-apiClass",r,"center"==t.pos?"bp-toast__center":""]})}.bind(this)}).$mount("#".concat(r));a.$children[0].$data.content=t.content,a.$children[0].$data.icon=t.icon,a.$children[0].$children[0].show().then(function(t){l(this,e)}.bind(this));var s=a.$children[0].$children[0];setTimeout(function(){var t=this;l(this,e);s&&s.hide().then(function(e){l(this,t),r&&r.length>0&&$("."+r).remove()}.bind(this))}.bind(this),t.durable)}}),vr=c(c(c({},cr),fr),pr);function gr(t){gr.installed&&hr===t||(gr.installed=!0,hr=t,Object.defineProperty(t.prototype,"$bpWidget",{get:function(){return vr}}))}var br=h.Promise,mr=E.f,wr=D("toStringTag"),_r=D("species"),yr={},xr=D("iterator"),Cr=Array.prototype,$r=function(t,e,n){if(pe(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,i){return t.call(e,n,r,i)}}return function(){return t.apply(e,arguments)}},Er=D("iterator"),Sr=function(t,e,n,r){try{return r?e(y(n)[0],n[1]):e(n)}catch(e){var i=t.return;throw void 0!==i&&y(i.call(t)),e}},Or=d((function(t){var e=function(t,e){this.stopped=t,this.result=e};(t.exports=function(t,n,r,i,o){var a,s,c,l,u,d,f,h,p=$r(n,r,i?2:1);if(o)a=t;else{if("function"!=typeof(s=function(t){if(null!=t)return t[Er]||t["@@iterator"]||yr[ft(t)]}(t)))throw TypeError("Target is not iterable");if(void 0!==(h=s)&&(yr.Array===h||Cr[xr]===h)){for(c=0,l=Nt(t.length);l>c;c++)if((u=i?p(y(f=t[c])[0],f[1]):p(t[c]))&&u instanceof e)return u;return new e(!1)}a=s.call(t)}for(d=a.next;!(f=d.call(a)).done;)if("object"==typeof(u=Sr(a,p,f.value,i))&&u&&u instanceof e)return u;return new e(!1)}).stop=function(t){return new e(!0,t)}})),kr=D("iterator"),jr=!1;try{var Tr=0,Ir={next:function(){return{done:!!Tr++}},return:function(){jr=!0}};Ir[kr]=function(){return this},Array.from(Ir,(function(){throw 2}))}catch(t){}var Ar,Pr,Rr,Nr=/(iphone|ipod|ipad).*applewebkit/i.test(Ln),Mr=h.location,Fr=h.setImmediate,Lr=h.clearImmediate,zr=h.process,Br=h.MessageChannel,Dr=h.Dispatch,Vr=0,Wr={},Ur=function(t){if(Wr.hasOwnProperty(t)){var e=Wr[t];delete Wr[t],e()}},Gr=function(t){return function(){Ur(t)}},Xr=function(t){Ur(t.data)},Hr=function(t){h.postMessage(t+"",Mr.protocol+"//"+Mr.host)};Fr&&Lr||(Fr=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return Wr[++Vr]=function(){("function"==typeof t?t:Function(t)).apply(void 0,e)},Ar(Vr),Vr},Lr=function(t){delete Wr[t]},"process"==lt(zr)?Ar=function(t){zr.nextTick(Gr(t))}:Dr&&Dr.now?Ar=function(t){Dr.now(Gr(t))}:Br&&!Nr?(Rr=(Pr=new Br).port2,Pr.port1.onmessage=Xr,Ar=$r(Rr.postMessage,Rr,1)):!h.addEventListener||"function"!=typeof postMessage||h.importScripts||p(Hr)||"file:"===Mr.protocol?Ar="onreadystatechange"in w("script")?function(t){Se.appendChild(w("script")).onreadystatechange=function(){Se.removeChild(this),Ur(t)}}:function(t){setTimeout(Gr(t),0)}:(Ar=Hr,h.addEventListener("message",Xr,!1)));var Kr,Yr,qr,Jr,Qr,Zr,ti,ei,ni={set:Fr,clear:Lr},ri=Ot.f,ii=ni.set,oi=h.MutationObserver||h.WebKitMutationObserver,ai=h.process,si=h.Promise,ci="process"==lt(ai),li=ri(h,"queueMicrotask"),ui=li&&li.value;ui||(Kr=function(){var t,e;for(ci&&(t=ai.domain)&&t.exit();Yr;){e=Yr.fn,Yr=Yr.next;try{e()}catch(t){throw Yr?Jr():qr=void 0,t}}qr=void 0,t&&t.enter()},ci?Jr=function(){ai.nextTick(Kr)}:oi&&!Nr?(Qr=!0,Zr=document.createTextNode(""),new oi(Kr).observe(Zr,{characterData:!0}),Jr=function(){Zr.data=Qr=!Qr}):si&&si.resolve?(ti=si.resolve(void 0),ei=ti.then,Jr=function(){ei.call(ti,Kr)}):Jr=function(){ii.call(h,Kr)});var di,fi,hi,pi,vi,gi,bi,mi=ui||function(t){var e={fn:t,next:void 0};qr&&(qr.next=e),Yr||(Yr=e,Jr()),qr=e},wi=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r})),this.resolve=pe(e),this.reject=pe(n)},_i={f:function(t){return new wi(t)}},yi=function(t,e){if(y(t),g(e)&&e.constructor===t)return e;var n=_i.f(t);return(0,n.resolve)(e),n.promise},xi=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},Ci=ni.set,$i=D("species"),Ei="Promise",Si=at.get,Oi=at.set,ki=at.getterFor(Ei),ji=br,Ti=h.TypeError,Ii=h.document,Ai=h.process,Pi=Tt("fetch"),Ri=_i.f,Ni=Ri,Mi="process"==lt(Ai),Fi=!!(Ii&&Ii.createEvent&&h.dispatchEvent),Li=ee(Ei,(function(){if(!(K(ji)!==String(ji))){if(66===Vn)return!0;if(!Mi&&"function"!=typeof PromiseRejectionEvent)return!0}if(Vn>=51&&/native code/.test(ji))return!1;var t=ji.resolve(1),e=function(t){t((function(){}),(function(){}))};return(t.constructor={})[$i]=e,!(t.then((function(){}))instanceof e)})),zi=Li||!function(t,e){if(!e&&!jr)return!1;var n=!1;try{var r={};r[kr]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(t){}return n}((function(t){ji.all(t).catch((function(){}))})),Bi=function(t){var e;return!(!g(t)||"function"!=typeof(e=t.then))&&e},Di=function(t,e,n){if(!e.notified){e.notified=!0;var r=e.reactions;mi((function(){for(var i=e.value,o=1==e.state,a=0;r.length>a;){var s,c,l,u=r[a++],d=o?u.ok:u.fail,f=u.resolve,h=u.reject,p=u.domain;try{d?(o||(2===e.rejection&&Gi(t,e),e.rejection=1),!0===d?s=i:(p&&p.enter(),s=d(i),p&&(p.exit(),l=!0)),s===u.promise?h(Ti("Promise-chain cycle")):(c=Bi(s))?c.call(s,f,h):f(s)):h(i)}catch(t){p&&!l&&p.exit(),h(t)}}e.reactions=[],e.notified=!1,n&&!e.rejection&&Wi(t,e)}))}},Vi=function(t,e,n){var r,i;Fi?((r=Ii.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),h.dispatchEvent(r)):r={promise:e,reason:n},(i=h["on"+t])?i(r):"unhandledrejection"===t&&function(t,e){var n=h.console;n&&n.error&&(1===arguments.length?n.error(t):n.error(t,e))}("Unhandled promise rejection",n)},Wi=function(t,e){Ci.call(h,(function(){var n,r=e.value;if(Ui(e)&&(n=xi((function(){Mi?Ai.emit("unhandledRejection",r,t):Vi("unhandledrejection",t,r)})),e.rejection=Mi||Ui(e)?2:1,n.error))throw n.value}))},Ui=function(t){return 1!==t.rejection&&!t.parent},Gi=function(t,e){Ci.call(h,(function(){Mi?Ai.emit("rejectionHandled",t):Vi("rejectionhandled",t,e.value)}))},Xi=function(t,e,n,r){return function(i){t(e,n,i,r)}},Hi=function(t,e,n,r){e.done||(e.done=!0,r&&(e=r),e.value=n,e.state=2,Di(t,e,!0))},Ki=function(t,e,n,r){if(!e.done){e.done=!0,r&&(e=r);try{if(t===n)throw Ti("Promise can't be resolved itself");var i=Bi(n);i?mi((function(){var r={done:!1};try{i.call(n,Xi(Ki,t,r,e),Xi(Hi,t,r,e))}catch(n){Hi(t,r,n,e)}})):(e.value=n,e.state=1,Di(t,e,!1))}catch(n){Hi(t,{done:!1},n,e)}}};Li&&(ji=function(t){!function(t,e,n){if(!(t instanceof e))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation")}(this,ji,Ei),pe(t),di.call(this);var e=Si(this);try{t(Xi(Ki,this,e),Xi(Hi,this,e))}catch(t){Hi(this,e,t)}},(di=function(t){Oi(this,{type:Ei,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=function(t,e,n){for(var r in e)st(t,r,e[r],n);return t}(ji.prototype,{then:function(t,e){var n=ki(this),r=Ri(Sn(this,ji));return r.ok="function"!=typeof t||t,r.fail="function"==typeof e&&e,r.domain=Mi?Ai.domain:void 0,n.parent=!0,n.reactions.push(r),0!=n.state&&Di(this,n,!1),r.promise},catch:function(t){return this.then(void 0,t)}}),fi=function(){var t=new di,e=Si(t);this.promise=t,this.resolve=Xi(Ki,t,e),this.reject=Xi(Hi,t,e)},_i.f=Ri=function(t){return t===ji||t===hi?new fi(t):Ni(t)},"function"==typeof br&&(pi=br.prototype.then,st(br.prototype,"then",(function(t,e){var n=this;return new ji((function(t,e){pi.call(n,t,e)})).then(t,e)}),{unsafe:!0}),"function"==typeof Pi&&re({global:!0,enumerable:!0,forced:!0},{fetch:function(t){return yi(ji,Pi.apply(h,arguments))}}))),re({global:!0,wrap:!0,forced:Li},{Promise:ji}),gi=Ei,bi=!1,(vi=ji)&&!A(vi=bi?vi:vi.prototype,wr)&&mr(vi,wr,{configurable:!0,value:gi}),function(t){var e=Tt(t),n=E.f;v&&e&&!e[_r]&&n(e,_r,{configurable:!0,get:function(){return this}})}(Ei),hi=Tt(Ei),re({target:Ei,stat:!0,forced:Li},{reject:function(t){var e=Ri(this);return e.reject.call(void 0,t),e.promise}}),re({target:Ei,stat:!0,forced:Li},{resolve:function(t){return yi(this,t)}}),re({target:Ei,stat:!0,forced:zi},{all:function(t){var e=this,n=Ri(e),r=n.resolve,i=n.reject,o=xi((function(){var n=pe(e.resolve),o=[],a=0,s=1;Or(t,(function(t){var c=a++,l=!1;o.push(void 0),s++,n.call(e,t).then((function(t){l||(l=!0,o[c]=t,--s||r(o))}),i)})),--s||r(o)}));return o.error&&i(o.value),n.promise},race:function(t){var e=this,n=Ri(e),r=n.reject,i=xi((function(){var i=pe(e.resolve);Or(t,(function(t){i.call(e,t).then(n.resolve,r)}))}));return i.error&&r(i.value),n.promise}});var Yi={components:{},props:{visible:Boolean,mask:{default:!0,type:Boolean},maskClose:{default:!1,type:Boolean},preventEvent:{default:!0,type:Boolean},hideBodyScroll:{default:!0,type:Boolean},pageClass:String|Array,pageStyle:String|Array|Object},watch:{visible:function(t){var e=this;t?this.show().then(function(){l(this,e)}.bind(this)):this.hide().then(function(){l(this,e)}.bind(this))}},mounted:function(){var t=this;this.visible&&this.show().then(function(){l(this,t)}.bind(this))},beforeDestroy:function(){var t=this;this.visible&&this.hide().then(function(){l(this,t)}.bind(this))},methods:{show:function(){var t=this;return new Promise(function(e){var n=this;l(this,t),tr(this.$el,this.mask,this.preventEvent,this.hideBodyScroll,function(){l(this,n),this.$emit("update:visible",!0),e()}.bind(this))}.bind(this))},hide:function(){var t=this;return new Promise(function(e){var n=this;l(this,t),nr(this.$el,function(){l(this,n),this.$emit("update:visible",!1),e()}.bind(this))}.bind(this))},onClickMask:function(){var t=this;this.maskClose&&this.hide().then(function(e){l(this,t)}.bind(this))}}},qi=D("isConcatSpreadable"),Ji=Vn>=51||!p((function(){var t=[];return t[qi]=!1,t.concat()[0]!==t})),Qi=Un("concat"),Zi=function(t){if(!g(t))return!1;var e=t[qi];return void 0!==e?!!e:Rn(t)};function to(t,e,n,r,i,o,a,s,c,l){"boolean"!=typeof a&&(c=s,s=a,a=!1);var u,d="function"==typeof n?n.options:n;if(t&&t.render&&(d.render=t.render,d.staticRenderFns=t.staticRenderFns,d._compiled=!0,i&&(d.functional=!0)),r&&(d._scopeId=r),o?(u=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,c(t)),t&&t._registeredComponents&&t._registeredComponents.add(o)},d._ssrRegister=u):e&&(u=a?function(t){e.call(this,l(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,s(t))}),u)if(d.functional){var f=d.render;d.render=function(t,e){return u.call(e),f(t,e)}}else{var h=d.beforeCreate;d.beforeCreate=h?[].concat(h,u):[u]}return n}re({target:"Array",proto:!0,forced:!Ji||!Qi},{concat:function(t){var e,n,r,i,o,a=ve(this),s=Mn(a,0),c=0;for(e=-1,r=arguments.length;e<r;e++)if(Zi(o=-1===e?a:arguments[e])){if(c+(i=Nt(o.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n<i;n++,c++)n in o&&Fn(s,c,o[n])}else{if(c>=9007199254740991)throw TypeError("Maximum allowed index exceeded");Fn(s,c++,o)}return s.length=c,s}});var eo=Yi,no=function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"bp-widget",on:{click:this.onClickMask}},[e("div",{staticClass:"bp-widget__content",class:this.pageClass,style:this.pageStyle},[this._t("default")],2)])};no._withStripped=!0;var ro=to({render:no,staticRenderFns:[]},void 0,eo,void 0,!1,void 0,!1,void 0,void 0,void 0),io={components:{bpIcon:t.VueObject.bpIcon,widget:ro},props:{visible:Boolean,mask:{default:!0,type:Boolean},maskClose:Boolean,pageClass:String|Array,pageStyle:String|Array|Object,showClose:{default:!0,type:Boolean},title:String},data:function(){return{visibleReal:!1,footClass:null}},watch:{visible:function(t){this.visibleReal=t},visibleReal:function(t){this.$emit("update:visible",t)}},beforeMount:function(){this.visibleReal=this.visible;var t=this.$slots.foot;if(t&&t[0]&&t[0].children){for(var e=0,n=0;n<t[0].children.length;n++)t[0].children[n].tag&&e++;1==e?this.footClass="bp-dialog__footOneButton":2==e?this.footClass="bp-dialog__footTwoButton":3==e&&(this.footClass="bp-dialog__footThreeButton")}},beforeDestroy:function(){},mounted:function(){},methods:{show:function(){return this.$refs.widget.show()},hide:function(){return this.$refs.widget.hide()}}},oo=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("widget",{ref:"widget",staticClass:"bp-dialog",attrs:{visible:t.visibleReal,maskClose:t.maskClose,mask:t.mask,pageClass:t.pageClass,pageStyle:t.pageStyle,preventEvent:!0},on:{"update:visible":function(e){t.visibleReal=e}}},[t.$slots.title?n("div",{staticClass:"bp-dialog__title bp-ellipsis",on:{click:function(t){t.stopPropagation()}}},[t._t("title")],2):t.title?n("div",{staticClass:"bp-dialog__title bp-ellipsis",on:{click:function(t){t.stopPropagation()}}},[t._v(t._s(t.title))]):t._e(),t._v(" "),n("div",{staticClass:"bp-dialog__main",on:{click:function(t){t.stopPropagation()}}},[t._t("default")],2),t._v(" "),t.$slots.foot?n("div",{staticClass:"bp-dialog__foot",class:t.footClass,on:{click:function(t){t.stopPropagation()}}},[t._t("foot")],2):t._e(),t._v(" "),t.showClose?n("bp-icon",{staticClass:"bp-dialog__close",attrs:{name:"bp-dialog_close"},on:{click:function(e){e.stopPropagation(),t.hide().then((function(t){}))}}}):t._e()],1)};oo._withStripped=!0;var ao=to({render:oo,staticRenderFns:[]},void 0,io,void 0,!1,void 0,!1,void 0,void 0,void 0),so={components:{bpDialog:ao},data:function(){return{title:"",content:"",okText:"确认"}}},co=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("bp-dialog",{attrs:{title:t.title,showClose:!1}},[t._v("\n "+t._s(t.content)+"\n "),n("div",{attrs:{slot:"foot"},slot:"foot"},[n("button",{on:{click:function(e){return t.$emit("confirm")}}},[t._v(t._s(t.okText))])])])};co._withStripped=!0;var lo=to({render:co,staticRenderFns:[]},void 0,so,void 0,!1,void 0,!1,void 0,void 0,void 0),uo={components:{bpDialog:ao},data:function(){return{title:"",content:"",okText:"确认",cancelText:"取消"}}},fo=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("bp-dialog",{attrs:{title:t.title,showClose:!1}},[t._v("\n "+t._s(t.content)+"\n "),n("div",{attrs:{slot:"foot"},slot:"foot"},[n("button",{staticStyle:{"font-weight":"500"},on:{click:function(e){return t.$emit("cancel")}}},[t._v(t._s(t.cancelText))]),t._v(" "),n("button",{on:{click:function(e){return t.$emit("confirm")}}},[t._v(t._s(t.okText))])])])};fo._withStripped=!0;var ho=to({render:fo,staticRenderFns:[]},void 0,uo,void 0,!1,void 0,!1,void 0,void 0,void 0),po={components:{bpIcon:t.VueObject.bpIcon,widget:ro},data:function(){return{content:""}}},vo=function(){var t=this.$createElement,e=this._self._c||t;return e("widget",{ref:"widget",staticClass:"bp-loading",attrs:{mask:!1,preventEvent:!0}},[e("div",{staticClass:"bp-loading__main"},[e("bp-icon",{attrs:{name:"loading"}})],1),this._v(" "),e("div",{staticClass:"bp-loading__text"},[this._v("\n "+this._s(this.content)+"\n ")])])};vo._withStripped=!0;var go=to({render:vo,staticRenderFns:[]},void 0,po,void 0,!1,void 0,!1,void 0,void 0,void 0),bo={components:{bpIcon:t.VueObject.bpIcon,widget:ro},data:function(){return{content:"",icon:null}}},mo=function(){var t=this.$createElement,e=this._self._c||t;return e("widget",{ref:"widget",staticClass:"bp-toast",attrs:{mask:!1,preventEvent:!1,hideBodyScroll:!1}},[e("div",[this.icon?e("div",{staticClass:"bp-toast__main"},[e("bp-icon",{attrs:{name:this.icon}})],1):this._e(),this._v(" "),e("div",{staticClass:"bp-toast__text"},[this._v("\n "+this._s(this.content)+"\n ")])])])};mo._withStripped=!0;var wo=to({render:mo,staticRenderFns:[]},void 0,bo,void 0,!1,void 0,!1,void 0,void 0,void 0);function _o(t,e){var n=this;er(),setTimeout(function(){l(this,n);var t=$(".bp-navbarView_page").length,e=$(".bp-widget[data-mark='".concat("page"+t,"']"));if(0==e.length)$("body").removeClass("bp-widget__fixscroll"),$("html").css("padding-right","");else{for(var r=0;r<e.length;r++){var i=$(e[r]);if(i.hasClass("bp-widget__mask")&&i.hasClass("bp-widget__visible"))return void Zn(i)}$("body").removeClass("bp-widget__fixscroll"),$("html").css("padding-right","")}}.bind(this),800)}function yo(){t.icons.registerAliasIcon("bp-dialog_close","cancel"),rr({alert:lo,confirm:ho,loading:go,toast:wo}),t.router.off("routeChanged",_o).on("routeChanged",_o)}yo();var xo={init:yo,VuePlugin:function(){return{install:gr}},hook:qn,registerDialogComponents:rr,apiWidget:vr,bpDialog:ao,bpWidget:ro};export default xo; | ||
import t from"@bpui/libs";import{string as e,utils as n,dom as i,crypt as r}from"febs-browser";import o from"vue";function a(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function c(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?s(Object(n),!0).forEach((function(e){a(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function l(t,e){if(t!==e)throw new TypeError("Cannot instantiate an arrow function")}var u="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function d(t,e){return t(e={exports:{}},e.exports),e.exports}var f=function(t){return t&&t.Math==Math&&t},p=f("object"==typeof globalThis&&globalThis)||f("object"==typeof window&&window)||f("object"==typeof self&&self)||f("object"==typeof u&&u)||Function("return this")(),h=function(t){try{return!!t()}catch(t){return!0}},v=!h((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),g=function(t){return"object"==typeof t?null!==t:"function"==typeof t},b=p.document,m=g(b)&&g(b.createElement),w=function(t){return m?b.createElement(t):{}},_=!v&&!h((function(){return 7!=Object.defineProperty(w("div"),"a",{get:function(){return 7}}).a})),y=function(t){if(!g(t))throw TypeError(String(t)+" is not an object");return t},C=function(t,e){if(!g(t))return t;var n,i;if(e&&"function"==typeof(n=t.toString)&&!g(i=n.call(t)))return i;if("function"==typeof(n=t.valueOf)&&!g(i=n.call(t)))return i;if(!e&&"function"==typeof(n=t.toString)&&!g(i=n.call(t)))return i;throw TypeError("Can't convert object to primitive value")},x=Object.defineProperty,E={f:v?x:function(t,e,n){if(y(t),e=C(e,!0),y(n),_)try{return x(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},S=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},O=v?function(t,e,n){return E.f(t,e,S(1,n))}:function(t,e,n){return t[e]=n,t},k=function(t,e){try{O(p,t,e)}catch(n){p[t]=e}return e},j=p["__core-js_shared__"]||k("__core-js_shared__",{}),T=d((function(t){(t.exports=function(t,e){return j[t]||(j[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.5",mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),I={}.hasOwnProperty,A=function(t,e){return I.call(t,e)},P=0,R=Math.random(),N=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++P+R).toString(36)},M=!!Object.getOwnPropertySymbols&&!h((function(){return!String(Symbol())})),L=M&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,F=T("wks"),B=p.Symbol,D=L?B:B&&B.withoutSetter||N,V=function(t){return A(F,t)||(M&&A(B,t)?F[t]=B[t]:F[t]=D("Symbol."+t)),F[t]},z={};z[V("toStringTag")]="z";var W="[object z]"===String(z),U=Function.toString;"function"!=typeof j.inspectSource&&(j.inspectSource=function(t){return U.call(t)});var G,X,H,K=j.inspectSource,Y=p.WeakMap,q="function"==typeof Y&&/native code/.test(K(Y)),J=T("keys"),Q=function(t){return J[t]||(J[t]=N(t))},Z={},tt=p.WeakMap;if(q){var et=new tt,nt=et.get,it=et.has,rt=et.set;G=function(t,e){return rt.call(et,t,e),e},X=function(t){return nt.call(et,t)||{}},H=function(t){return it.call(et,t)}}else{var ot=Q("state");Z[ot]=!0,G=function(t,e){return O(t,ot,e),e},X=function(t){return A(t,ot)?t[ot]:{}},H=function(t){return A(t,ot)}}var at={set:G,get:X,has:H,enforce:function(t){return H(t)?X(t):G(t,{})},getterFor:function(t){return function(e){var n;if(!g(e)||(n=X(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}},st=d((function(t){var e=at.get,n=at.enforce,i=String(String).split("String");(t.exports=function(t,e,r,o){var a=!!o&&!!o.unsafe,s=!!o&&!!o.enumerable,c=!!o&&!!o.noTargetGet;"function"==typeof r&&("string"!=typeof e||A(r,"name")||O(r,"name",e),n(r).source=i.join("string"==typeof e?e:"")),t!==p?(a?!c&&t[e]&&(s=!0):delete t[e],s?t[e]=r:O(t,e,r)):s?t[e]=r:k(e,r)})(Function.prototype,"toString",(function(){return"function"==typeof this&&e(this).source||K(this)}))})),ct={}.toString,lt=function(t){return ct.call(t).slice(8,-1)},ut=V("toStringTag"),dt="Arguments"==lt(function(){return arguments}()),ft=W?lt:function(t){var e,n,i;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),ut))?n:dt?lt(e):"Object"==(i=lt(e))&&"function"==typeof e.callee?"Arguments":i},pt=W?{}.toString:function(){return"[object "+ft(this)+"]"};W||st(Object.prototype,"toString",pt,{unsafe:!0});var ht=function(){var t=y(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},vt=RegExp.prototype,gt=vt.toString,bt=h((function(){return"/a/b"!=gt.call({source:"a",flags:"b"})})),mt="toString"!=gt.name;(bt||mt)&&st(RegExp.prototype,"toString",(function(){var t=y(this),e=String(t.source),n=t.flags;return"/"+e+"/"+String(void 0===n&&t instanceof RegExp&&!("flags"in vt)?ht.call(t):n)}),{unsafe:!0});var wt={}.propertyIsEnumerable,_t=Object.getOwnPropertyDescriptor,yt={f:_t&&!wt.call({1:2},1)?function(t){var e=_t(this,t);return!!e&&e.enumerable}:wt},Ct="".split,xt=h((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==lt(t)?Ct.call(t,""):Object(t)}:Object,Et=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},$t=function(t){return xt(Et(t))},St=Object.getOwnPropertyDescriptor,Ot={f:v?St:function(t,e){if(t=$t(t),e=C(e,!0),_)try{return St(t,e)}catch(t){}if(A(t,e))return S(!yt.f.call(t,e),t[e])}},kt=p,jt=function(t){return"function"==typeof t?t:void 0},Tt=function(t,e){return arguments.length<2?jt(kt[t])||jt(p[t]):kt[t]&&kt[t][e]||p[t]&&p[t][e]},It=Math.ceil,At=Math.floor,Pt=function(t){return isNaN(t=+t)?0:(t>0?At:It)(t)},Rt=Math.min,Nt=function(t){return t>0?Rt(Pt(t),9007199254740991):0},Mt=Math.max,Lt=Math.min,Ft=function(t,e){var n=Pt(t);return n<0?Mt(n+e,0):Lt(n,e)},Bt=function(t){return function(e,n,i){var r,o=$t(e),a=Nt(o.length),s=Ft(i,a);if(t&&n!=n){for(;a>s;)if((r=o[s++])!=r)return!0}else for(;a>s;s++)if((t||s in o)&&o[s]===n)return t||s||0;return!t&&-1}},Dt={includes:Bt(!0),indexOf:Bt(!1)},Vt=Dt.indexOf,zt=function(t,e){var n,i=$t(t),r=0,o=[];for(n in i)!A(Z,n)&&A(i,n)&&o.push(n);for(;e.length>r;)A(i,n=e[r++])&&(~Vt(o,n)||o.push(n));return o},Wt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Ut=Wt.concat("length","prototype"),Gt={f:Object.getOwnPropertyNames||function(t){return zt(t,Ut)}},Xt={f:Object.getOwnPropertySymbols},Ht=Tt("Reflect","ownKeys")||function(t){var e=Gt.f(y(t)),n=Xt.f;return n?e.concat(n(t)):e},Kt=function(t,e){for(var n=Ht(e),i=E.f,r=Ot.f,o=0;o<n.length;o++){var a=n[o];A(t,a)||i(t,a,r(e,a))}},Yt=/#|\.prototype\./,qt=function(t,e){var n=Qt[Jt(t)];return n==te||n!=Zt&&("function"==typeof e?h(e):!!e)},Jt=qt.normalize=function(t){return String(t).replace(Yt,".").toLowerCase()},Qt=qt.data={},Zt=qt.NATIVE="N",te=qt.POLYFILL="P",ee=qt,ne=Ot.f,ie=function(t,e){var n,i,r,o,a,s=t.target,c=t.global,l=t.stat;if(n=c?p:l?p[s]||k(s,{}):(p[s]||{}).prototype)for(i in e){if(o=e[i],r=t.noTargetGet?(a=ne(n,i))&&a.value:n[i],!ee(c?i:s+(l?".":"#")+i,t.forced)&&void 0!==r){if(typeof o==typeof r)continue;Kt(o,r)}(t.sham||r&&r.sham)&&O(o,"sham",!0),st(n,i,o,t)}},re=function(t,e){var n=[][t];return!!n&&h((function(){n.call(null,e||function(){throw 1},1)}))},oe=Object.defineProperty,ae={},se=function(t){throw t},ce=function(t,e){if(A(ae,t))return ae[t];e||(e={});var n=[][t],i=!!A(e,"ACCESSORS")&&e.ACCESSORS,r=A(e,0)?e[0]:se,o=A(e,1)?e[1]:void 0;return ae[t]=!!n&&!h((function(){if(i&&!v)return!0;var t={length:-1};i?oe(t,1,{enumerable:!0,get:se}):t[1]=1,n.call(t,r,o)}))},le=Dt.indexOf,ue=[].indexOf,de=!!ue&&1/[1].indexOf(1,-0)<0,fe=re("indexOf"),pe=ce("indexOf",{ACCESSORS:!0,1:0});ie({target:"Array",proto:!0,forced:de||!fe||!pe},{indexOf:function(t){return de?ue.apply(this,arguments)||0:le(this,t,arguments.length>1?arguments[1]:void 0)}});var he=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t},ve=function(t){return Object(Et(t))},ge=[],be=ge.sort,me=h((function(){ge.sort(void 0)})),we=h((function(){ge.sort(null)})),_e=re("sort");ie({target:"Array",proto:!0,forced:me||!we||!_e},{sort:function(t){return void 0===t?be.call(ve(this)):be.call(ve(this),he(t))}});var ye,Ce=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),e=n instanceof Array}catch(t){}return function(n,i){return y(n),function(t){if(!g(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype")}(i),e?t.call(n,i):n.__proto__=i,n}}():void 0),xe=function(t,e,n){var i,r;return Ce&&"function"==typeof(i=e.constructor)&&i!==n&&g(r=i.prototype)&&r!==n.prototype&&Ce(t,r),t},Ee=Object.keys||function(t){return zt(t,Wt)},$e=v?Object.defineProperties:function(t,e){y(t);for(var n,i=Ee(e),r=i.length,o=0;r>o;)E.f(t,n=i[o++],e[n]);return t},Se=Tt("document","documentElement"),Oe=Q("IE_PROTO"),ke=function(){},je=function(t){return"<script>"+t+"<\/script>"},Te=function(){try{ye=document.domain&&new ActiveXObject("htmlfile")}catch(t){}var t,e;Te=ye?function(t){t.write(je("")),t.close();var e=t.parentWindow.Object;return t=null,e}(ye):((e=w("iframe")).style.display="none",Se.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(je("document.F=Object")),t.close(),t.F);for(var n=Wt.length;n--;)delete Te.prototype[Wt[n]];return Te()};Z[Oe]=!0;var Ie=Object.create||function(t,e){var n;return null!==t?(ke.prototype=y(t),n=new ke,ke.prototype=null,n[Oe]=t):n=Te(),void 0===e?n:$e(n,e)},Ae="\t\n\v\f\r \u2028\u2029\ufeff",Pe="["+Ae+"]",Re=RegExp("^"+Pe+Pe+"*"),Ne=RegExp(Pe+Pe+"*$"),Me=function(t){return function(e){var n=String(Et(e));return 1&t&&(n=n.replace(Re,"")),2&t&&(n=n.replace(Ne,"")),n}},Le={start:Me(1),end:Me(2),trim:Me(3)},Fe=Gt.f,Be=Ot.f,De=E.f,Ve=Le.trim,ze=p.Number,We=ze.prototype,Ue="Number"==lt(Ie(We)),Ge=function(t){var e,n,i,r,o,a,s,c,l=C(t,!1);if("string"==typeof l&&l.length>2)if(43===(e=(l=Ve(l)).charCodeAt(0))||45===e){if(88===(n=l.charCodeAt(2))||120===n)return NaN}else if(48===e){switch(l.charCodeAt(1)){case 66:case 98:i=2,r=49;break;case 79:case 111:i=8,r=55;break;default:return+l}for(a=(o=l.slice(2)).length,s=0;s<a;s++)if((c=o.charCodeAt(s))<48||c>r)return NaN;return parseInt(o,i)}return+l};if(ee("Number",!ze(" 0o1")||!ze("0b1")||ze("+0x1"))){for(var Xe,He=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof He&&(Ue?h((function(){We.valueOf.call(n)})):"Number"!=lt(n))?xe(new ze(Ge(e)),n,He):Ge(e)},Ke=v?Fe(ze):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),Ye=0;Ke.length>Ye;Ye++)A(ze,Xe=Ke[Ye])&&!A(He,Xe)&&De(He,Xe,Be(ze,Xe));He.prototype=We,We.constructor=He,st(p,"Number",He)}var qe=p.Promise,Je=E.f,Qe=V("toStringTag"),Ze=V("species"),tn={},en=V("iterator"),nn=Array.prototype,rn=function(t,e,n){if(he(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(n){return t.call(e,n)};case 2:return function(n,i){return t.call(e,n,i)};case 3:return function(n,i,r){return t.call(e,n,i,r)}}return function(){return t.apply(e,arguments)}},on=V("iterator"),an=function(t,e,n,i){try{return i?e(y(n)[0],n[1]):e(n)}catch(e){var r=t.return;throw void 0!==r&&y(r.call(t)),e}},sn=d((function(t){var e=function(t,e){this.stopped=t,this.result=e};(t.exports=function(t,n,i,r,o){var a,s,c,l,u,d,f,p,h=rn(n,i,r?2:1);if(o)a=t;else{if("function"!=typeof(s=function(t){if(null!=t)return t[on]||t["@@iterator"]||tn[ft(t)]}(t)))throw TypeError("Target is not iterable");if(void 0!==(p=s)&&(tn.Array===p||nn[en]===p)){for(c=0,l=Nt(t.length);l>c;c++)if((u=r?h(y(f=t[c])[0],f[1]):h(t[c]))&&u instanceof e)return u;return new e(!1)}a=s.call(t)}for(d=a.next;!(f=d.call(a)).done;)if("object"==typeof(u=an(a,h,f.value,r))&&u&&u instanceof e)return u;return new e(!1)}).stop=function(t){return new e(!0,t)}})),cn=V("iterator"),ln=!1;try{var un=0,dn={next:function(){return{done:!!un++}},return:function(){ln=!0}};dn[cn]=function(){return this},Array.from(dn,(function(){throw 2}))}catch(t){}var fn,pn,hn,vn=V("species"),gn=function(t,e){var n,i=y(t).constructor;return void 0===i||null==(n=y(i)[vn])?e:he(n)},bn=Tt("navigator","userAgent")||"",mn=/(iphone|ipod|ipad).*applewebkit/i.test(bn),wn=p.location,_n=p.setImmediate,yn=p.clearImmediate,Cn=p.process,xn=p.MessageChannel,En=p.Dispatch,$n=0,Sn={},On=function(t){if(Sn.hasOwnProperty(t)){var e=Sn[t];delete Sn[t],e()}},kn=function(t){return function(){On(t)}},jn=function(t){On(t.data)},Tn=function(t){p.postMessage(t+"",wn.protocol+"//"+wn.host)};_n&&yn||(_n=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return Sn[++$n]=function(){("function"==typeof t?t:Function(t)).apply(void 0,e)},fn($n),$n},yn=function(t){delete Sn[t]},"process"==lt(Cn)?fn=function(t){Cn.nextTick(kn(t))}:En&&En.now?fn=function(t){En.now(kn(t))}:xn&&!mn?(hn=(pn=new xn).port2,pn.port1.onmessage=jn,fn=rn(hn.postMessage,hn,1)):!p.addEventListener||"function"!=typeof postMessage||p.importScripts||h(Tn)||"file:"===wn.protocol?fn="onreadystatechange"in w("script")?function(t){Se.appendChild(w("script")).onreadystatechange=function(){Se.removeChild(this),On(t)}}:function(t){setTimeout(kn(t),0)}:(fn=Tn,p.addEventListener("message",jn,!1)));var In,An,Pn,Rn,Nn,Mn,Ln,Fn,Bn={set:_n,clear:yn},Dn=Ot.f,Vn=Bn.set,zn=p.MutationObserver||p.WebKitMutationObserver,Wn=p.process,Un=p.Promise,Gn="process"==lt(Wn),Xn=Dn(p,"queueMicrotask"),Hn=Xn&&Xn.value;Hn||(In=function(){var t,e;for(Gn&&(t=Wn.domain)&&t.exit();An;){e=An.fn,An=An.next;try{e()}catch(t){throw An?Rn():Pn=void 0,t}}Pn=void 0,t&&t.enter()},Gn?Rn=function(){Wn.nextTick(In)}:zn&&!mn?(Nn=!0,Mn=document.createTextNode(""),new zn(In).observe(Mn,{characterData:!0}),Rn=function(){Mn.data=Nn=!Nn}):Un&&Un.resolve?(Ln=Un.resolve(void 0),Fn=Ln.then,Rn=function(){Fn.call(Ln,In)}):Rn=function(){Vn.call(p,In)});var Kn,Yn,qn=Hn||function(t){var e={fn:t,next:void 0};Pn&&(Pn.next=e),An||(An=e,Rn()),Pn=e},Jn=function(t){var e,n;this.promise=new t((function(t,i){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=i})),this.resolve=he(e),this.reject=he(n)},Qn={f:function(t){return new Jn(t)}},Zn=function(t,e){if(y(t),g(e)&&e.constructor===t)return e;var n=Qn.f(t);return(0,n.resolve)(e),n.promise},ti=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},ei=p.process,ni=ei&&ei.versions,ii=ni&&ni.v8;ii?Yn=(Kn=ii.split("."))[0]+Kn[1]:bn&&(!(Kn=bn.match(/Edge\/(\d+)/))||Kn[1]>=74)&&(Kn=bn.match(/Chrome\/(\d+)/))&&(Yn=Kn[1]);var ri,oi,ai,si,ci,li,ui,di=Yn&&+Yn,fi=Bn.set,pi=V("species"),hi="Promise",vi=at.get,gi=at.set,bi=at.getterFor(hi),mi=qe,wi=p.TypeError,_i=p.document,yi=p.process,Ci=Tt("fetch"),xi=Qn.f,Ei=xi,$i="process"==lt(yi),Si=!!(_i&&_i.createEvent&&p.dispatchEvent),Oi=ee(hi,(function(){if(!(K(mi)!==String(mi))){if(66===di)return!0;if(!$i&&"function"!=typeof PromiseRejectionEvent)return!0}if(di>=51&&/native code/.test(mi))return!1;var t=mi.resolve(1),e=function(t){t((function(){}),(function(){}))};return(t.constructor={})[pi]=e,!(t.then((function(){}))instanceof e)})),ki=Oi||!function(t,e){if(!e&&!ln)return!1;var n=!1;try{var i={};i[cn]=function(){return{next:function(){return{done:n=!0}}}},t(i)}catch(t){}return n}((function(t){mi.all(t).catch((function(){}))})),ji=function(t){var e;return!(!g(t)||"function"!=typeof(e=t.then))&&e},Ti=function(t,e,n){if(!e.notified){e.notified=!0;var i=e.reactions;qn((function(){for(var r=e.value,o=1==e.state,a=0;i.length>a;){var s,c,l,u=i[a++],d=o?u.ok:u.fail,f=u.resolve,p=u.reject,h=u.domain;try{d?(o||(2===e.rejection&&Ri(t,e),e.rejection=1),!0===d?s=r:(h&&h.enter(),s=d(r),h&&(h.exit(),l=!0)),s===u.promise?p(wi("Promise-chain cycle")):(c=ji(s))?c.call(s,f,p):f(s)):p(r)}catch(t){h&&!l&&h.exit(),p(t)}}e.reactions=[],e.notified=!1,n&&!e.rejection&&Ai(t,e)}))}},Ii=function(t,e,n){var i,r;Si?((i=_i.createEvent("Event")).promise=e,i.reason=n,i.initEvent(t,!1,!0),p.dispatchEvent(i)):i={promise:e,reason:n},(r=p["on"+t])?r(i):"unhandledrejection"===t&&function(t,e){var n=p.console;n&&n.error&&(1===arguments.length?n.error(t):n.error(t,e))}("Unhandled promise rejection",n)},Ai=function(t,e){fi.call(p,(function(){var n,i=e.value;if(Pi(e)&&(n=ti((function(){$i?yi.emit("unhandledRejection",i,t):Ii("unhandledrejection",t,i)})),e.rejection=$i||Pi(e)?2:1,n.error))throw n.value}))},Pi=function(t){return 1!==t.rejection&&!t.parent},Ri=function(t,e){fi.call(p,(function(){$i?yi.emit("rejectionHandled",t):Ii("rejectionhandled",t,e.value)}))},Ni=function(t,e,n,i){return function(r){t(e,n,r,i)}},Mi=function(t,e,n,i){e.done||(e.done=!0,i&&(e=i),e.value=n,e.state=2,Ti(t,e,!0))},Li=function(t,e,n,i){if(!e.done){e.done=!0,i&&(e=i);try{if(t===n)throw wi("Promise can't be resolved itself");var r=ji(n);r?qn((function(){var i={done:!1};try{r.call(n,Ni(Li,t,i,e),Ni(Mi,t,i,e))}catch(n){Mi(t,i,n,e)}})):(e.value=n,e.state=1,Ti(t,e,!1))}catch(n){Mi(t,{done:!1},n,e)}}};function Fi(t,e){return RegExp(t,e)}Oi&&(mi=function(t){!function(t,e,n){if(!(t instanceof e))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation")}(this,mi,hi),he(t),ri.call(this);var e=vi(this);try{t(Ni(Li,this,e),Ni(Mi,this,e))}catch(t){Mi(this,e,t)}},(ri=function(t){gi(this,{type:hi,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=function(t,e,n){for(var i in e)st(t,i,e[i],n);return t}(mi.prototype,{then:function(t,e){var n=bi(this),i=xi(gn(this,mi));return i.ok="function"!=typeof t||t,i.fail="function"==typeof e&&e,i.domain=$i?yi.domain:void 0,n.parent=!0,n.reactions.push(i),0!=n.state&&Ti(this,n,!1),i.promise},catch:function(t){return this.then(void 0,t)}}),oi=function(){var t=new ri,e=vi(t);this.promise=t,this.resolve=Ni(Li,t,e),this.reject=Ni(Mi,t,e)},Qn.f=xi=function(t){return t===mi||t===ai?new oi(t):Ei(t)},"function"==typeof qe&&(si=qe.prototype.then,st(qe.prototype,"then",(function(t,e){var n=this;return new mi((function(t,e){si.call(n,t,e)})).then(t,e)}),{unsafe:!0}),"function"==typeof Ci&&ie({global:!0,enumerable:!0,forced:!0},{fetch:function(t){return Zn(mi,Ci.apply(p,arguments))}}))),ie({global:!0,wrap:!0,forced:Oi},{Promise:mi}),li=hi,ui=!1,(ci=mi)&&!A(ci=ui?ci:ci.prototype,Qe)&&Je(ci,Qe,{configurable:!0,value:li}),function(t){var e=Tt(t),n=E.f;v&&e&&!e[Ze]&&n(e,Ze,{configurable:!0,get:function(){return this}})}(hi),ai=Tt(hi),ie({target:hi,stat:!0,forced:Oi},{reject:function(t){var e=xi(this);return e.reject.call(void 0,t),e.promise}}),ie({target:hi,stat:!0,forced:Oi},{resolve:function(t){return Zn(this,t)}}),ie({target:hi,stat:!0,forced:ki},{all:function(t){var e=this,n=xi(e),i=n.resolve,r=n.reject,o=ti((function(){var n=he(e.resolve),o=[],a=0,s=1;sn(t,(function(t){var c=a++,l=!1;o.push(void 0),s++,n.call(e,t).then((function(t){l||(l=!0,o[c]=t,--s||i(o))}),r)})),--s||i(o)}));return o.error&&r(o.value),n.promise},race:function(t){var e=this,n=xi(e),i=n.reject,r=ti((function(){var r=he(e.resolve);sn(t,(function(t){r.call(e,t).then(n.resolve,i)}))}));return r.error&&i(r.value),n.promise}});var Bi,Di,Vi={UNSUPPORTED_Y:h((function(){var t=Fi("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),BROKEN_CARET:h((function(){var t=Fi("^r","gy");return t.lastIndex=2,null!=t.exec("str")}))},zi=RegExp.prototype.exec,Wi=String.prototype.replace,Ui=zi,Gi=(Bi=/a/,Di=/b*/g,zi.call(Bi,"a"),zi.call(Di,"a"),0!==Bi.lastIndex||0!==Di.lastIndex),Xi=Vi.UNSUPPORTED_Y||Vi.BROKEN_CARET,Hi=void 0!==/()??/.exec("")[1];(Gi||Hi||Xi)&&(Ui=function(t){var e,n,i,r,o=this,a=Xi&&o.sticky,s=ht.call(o),c=o.source,l=0,u=t;return a&&(-1===(s=s.replace("y","")).indexOf("g")&&(s+="g"),u=String(t).slice(o.lastIndex),o.lastIndex>0&&(!o.multiline||o.multiline&&"\n"!==t[o.lastIndex-1])&&(c="(?: "+c+")",u=" "+u,l++),n=new RegExp("^(?:"+c+")",s)),Hi&&(n=new RegExp("^"+c+"$(?!\\s)",s)),Gi&&(e=o.lastIndex),i=zi.call(a?n:o,u),a?i?(i.input=i.input.slice(l),i[0]=i[0].slice(l),i.index=o.lastIndex,o.lastIndex+=i[0].length):o.lastIndex=0:Gi&&i&&(o.lastIndex=o.global?i.index+i[0].length:e),Hi&&i&&i.length>1&&Wi.call(i[0],n,(function(){for(r=1;r<arguments.length-2;r++)void 0===arguments[r]&&(i[r]=void 0)})),i});var Ki=Ui;ie({target:"RegExp",proto:!0,forced:/./.exec!==Ki},{exec:Ki});var Yi=V("species"),qi=!h((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),Ji="$0"==="a".replace(/./,"$0"),Qi=V("replace"),Zi=!!/./[Qi]&&""===/./[Qi]("a","$0"),tr=!h((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),er=function(t,e,n,i){var r=V(t),o=!h((function(){var e={};return e[r]=function(){return 7},7!=""[t](e)})),a=o&&!h((function(){var e=!1,n=/a/;return"split"===t&&((n={}).constructor={},n.constructor[Yi]=function(){return n},n.flags="",n[r]=/./[r]),n.exec=function(){return e=!0,null},n[r](""),!e}));if(!o||!a||"replace"===t&&(!qi||!Ji||Zi)||"split"===t&&!tr){var s=/./[r],c=n(r,""[t],(function(t,e,n,i,r){return e.exec===Ki?o&&!r?{done:!0,value:s.call(e,n,i)}:{done:!0,value:t.call(n,e,i)}:{done:!1}}),{REPLACE_KEEPS_$0:Ji,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:Zi}),l=c[0],u=c[1];st(String.prototype,t,l),st(RegExp.prototype,r,2==e?function(t,e){return u.call(t,this,e)}:function(t){return u.call(t,this)})}i&&O(RegExp.prototype[r],"sham",!0)},nr=function(t){return function(e,n){var i,r,o=String(Et(e)),a=Pt(n),s=o.length;return a<0||a>=s?t?"":void 0:(i=o.charCodeAt(a))<55296||i>56319||a+1===s||(r=o.charCodeAt(a+1))<56320||r>57343?t?o.charAt(a):i:t?o.slice(a,a+2):r-56320+(i-55296<<10)+65536}},ir={codeAt:nr(!1),charAt:nr(!0)}.charAt,rr=function(t,e,n){return e+(n?ir(t,e).length:1)},or=function(t,e){var n=t.exec;if("function"==typeof n){var i=n.call(t,e);if("object"!=typeof i)throw TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==lt(t))throw TypeError("RegExp#exec called on incompatible receiver");return Ki.call(t,e)},ar=Math.max,sr=Math.min,cr=Math.floor,lr=/\$([$&'`]|\d\d?|<[^>]*>)/g,ur=/\$([$&'`]|\d\d?)/g,dr=function(t){return void 0===t?t:String(t)};er("replace",2,(function(t,e,n,i){var r=i.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,o=i.REPLACE_KEEPS_$0,a=r?"$":"$0";return[function(n,i){var r=Et(this),o=null==n?void 0:n[t];return void 0!==o?o.call(n,r,i):e.call(String(r),n,i)},function(t,i){if(!r&&o||"string"==typeof i&&-1===i.indexOf(a)){var c=n(e,t,this,i);if(c.done)return c.value}var l=y(t),u=String(this),d="function"==typeof i;d||(i=String(i));var f=l.global;if(f){var p=l.unicode;l.lastIndex=0}for(var h=[];;){var v=or(l,u);if(null===v)break;if(h.push(v),!f)break;""===String(v[0])&&(l.lastIndex=rr(u,Nt(l.lastIndex),p))}for(var g="",b=0,m=0;m<h.length;m++){v=h[m];for(var w=String(v[0]),_=ar(sr(Pt(v.index),u.length),0),C=[],x=1;x<v.length;x++)C.push(dr(v[x]));var E=v.groups;if(d){var $=[w].concat(C,_,u);void 0!==E&&$.push(E);var S=String(i.apply(void 0,$))}else S=s(w,u,_,C,E,i);_>=b&&(g+=u.slice(b,_)+S,b=_+w.length)}return g+u.slice(b)}];function s(t,n,i,r,o,a){var s=i+t.length,c=r.length,l=ur;return void 0!==o&&(o=ve(o),l=lr),e.call(a,l,(function(e,a){var l;switch(a.charAt(0)){case"$":return"$";case"&":return t;case"`":return n.slice(0,i);case"'":return n.slice(s);case"<":l=o[a.slice(1,-1)];break;default:var u=+a;if(0===u)return e;if(u>c){var d=cr(u/10);return 0===d?e:d<=c?void 0===r[d-1]?a.charAt(1):r[d-1]+a.charAt(1):e}l=r[u-1]}return void 0===l?"":l}))}}));var fr=V("match"),pr=[].push,hr=Math.min,vr=!h((function(){return!RegExp(4294967295,"y")}));er("split",2,(function(t,e,n){var i;return i="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,n){var i=String(Et(this)),r=void 0===n?4294967295:n>>>0;if(0===r)return[];if(void 0===t)return[i];if(!function(t){var e;return g(t)&&(void 0!==(e=t[fr])?!!e:"RegExp"==lt(t))}(t))return e.call(i,t,r);for(var o,a,s,c=[],l=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),u=0,d=new RegExp(t.source,l+"g");(o=Ki.call(d,i))&&!((a=d.lastIndex)>u&&(c.push(i.slice(u,o.index)),o.length>1&&o.index<i.length&&pr.apply(c,o.slice(1)),s=o[0].length,u=a,c.length>=r));)d.lastIndex===o.index&&d.lastIndex++;return u===i.length?!s&&d.test("")||c.push(""):c.push(i.slice(u)),c.length>r?c.slice(0,r):c}:"0".split(void 0,0).length?function(t,n){return void 0===t&&0===n?[]:e.call(this,t,n)}:e,[function(e,n){var r=Et(this),o=null==e?void 0:e[t];return void 0!==o?o.call(e,r,n):i.call(String(r),e,n)},function(t,r){var o=n(i,t,this,r,i!==e);if(o.done)return o.value;var a=y(t),s=String(this),c=gn(a,RegExp),l=a.unicode,u=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(vr?"y":"g"),d=new c(vr?a:"^(?:"+a.source+")",u),f=void 0===r?4294967295:r>>>0;if(0===f)return[];if(0===s.length)return null===or(d,s)?[s]:[];for(var p=0,h=0,v=[];h<s.length;){d.lastIndex=vr?h:0;var g,b=or(d,vr?s:s.slice(h));if(null===b||(g=hr(Nt(d.lastIndex+(vr?0:h)),s.length))===p)h=rr(s,h,l);else{if(v.push(s.slice(p,h)),v.length===f)return v;for(var m=1;m<=b.length-1;m++)if(v.push(b[m]),v.length===f)return v;h=p=g}}return v.push(s.slice(p)),v}]}),!vr);var gr,br=Le.trim;ie({target:"String",proto:!0,forced:(gr="trim",h((function(){return!!Ae[gr]()||" "!=" "[gr]()||Ae[gr].name!==gr})))},{trim:function(){return br(this)}});var mr=Array.isArray||function(t){return"Array"==lt(t)},wr=V("species"),_r=function(t,e){var n;return mr(t)&&("function"!=typeof(n=t.constructor)||n!==Array&&!mr(n.prototype)?g(n)&&null===(n=n[wr])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===e?0:e)},yr=function(t,e,n){var i=C(e);i in t?E.f(t,i,S(0,n)):t[i]=n},Cr=V("species"),xr=function(t){return di>=51||!h((function(){var e=[];return(e.constructor={})[Cr]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},Er=xr("splice"),$r=ce("splice",{ACCESSORS:!0,0:0,1:2}),Sr=Math.max,Or=Math.min;ie({target:"Array",proto:!0,forced:!Er||!$r},{splice:function(t,e){var n,i,r,o,a,s,c=ve(this),l=Nt(c.length),u=Ft(t,l),d=arguments.length;if(0===d?n=i=0:1===d?(n=0,i=l-u):(n=d-2,i=Or(Sr(Pt(e),0),l-u)),l+n-i>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(r=_r(c,i),o=0;o<i;o++)(a=u+o)in c&&yr(r,o,c[a]);if(r.length=i,n<i){for(o=u;o<l-i;o++)s=o+n,(a=o+i)in c?c[s]=c[a]:delete c[s];for(o=l;o>l-i+n;o--)delete c[o-1]}else if(n>i)for(o=l-i;o>u;o--)s=o+n-1,(a=o+i-1)in c?c[s]=c[a]:delete c[s];for(o=0;o<n;o++)c[o+u]=arguments[o+2];return c.length=l-i+n,r}});function kr(t){var e=window.$BpGlobalWidgetHook;if(e)for(var n=0;n<e.length;n++)e[n]&&e[n](t)}var jr=Object.freeze({__proto__:null,addWidgetShake:function(t){window.$BpGlobalWidgetHook||(window.$BpGlobalWidgetHook=[]);var e=window.$BpGlobalWidgetHook;e.indexOf(t)<0&&e.push(t)},removeWidgetShake:function(t){var e=window.$BpGlobalWidgetHook;e&&e.indexOf(t)>=0&&e.splice(0,1)},callWidgetShake:kr});function Tr(t){var n=window.getComputedStyle(t,null);return n=(n=n?n["transition-duration"]:"0.1s").split(",")[0],n=e.trim(n),n=e.replace(n,"s",""),n=parseFloat(n),n=Math.ceil(1e3*n)||100}function Ir(t){return"touchmove"==t.type||"mousewheel"==t.type||t.preventDefault(),!1}function Ar(t){t.hasClass("bp-widget__bodyFixscroll")&&$("body").addClass("bp-widget__fixscroll");var n=t.attr("data-htmlp");if(n.length>0){var i=e.replace(n,"px","");kr(i=parseInt(i)||0),$("html").css("padding-right",n)}}function Pr(e,r,o,a,s){var c,u=this,d=$(e);if(o&&((c=d)&&!i.isDom(c)&&(c=c[0]),c&&(n.browserIsMobile()?(i.removeEventListener(c,"touchmove",Ir),i.addEventListener(c,"touchmove",Ir),i.removeEventListener(c,"touchup",Ir),i.addEventListener(c,"touchup",Ir),i.removeEventListener(c,"touchdown",Ir),i.addEventListener(c,"touchdown",Ir)):(i.removeEventListener(c,"mousewheel",Ir),i.addEventListener(c,"mousewheel",Ir),i.removeEventListener(c,"mouseover",Ir),i.addEventListener(c,"mouseover",Ir)),i.removeEventListener(c,"click",Ir),i.addEventListener(c,"click",Ir))),d.hasClass("bp-widget__visible")||d.hasClass("bp-widget__showing"))s&&s();else{!function(t){navigator.userAgent.toLowerCase().indexOf("baidu")>=0&&t.css("backdrop-filter","none")}(d);var f="page"+$(".bp-navbarView_page").length,p=function(t){for(var e=2e3,n=$(".bp-widget[data-mark='".concat(t,"']")),i=0;i<n.length;i++){var r=Number($(n[i]).css("z-index"))||0;r>e&&(e=r)}return e}(f)+2;d.css("z-index",p),d.attr("data-mark",f),d.addClass("bp-widget__showing").removeClass("bp-widget__closing"),r&&d.addClass("bp-widget__maskTmp");var h=!1,v=$("body"),g=$("html");if(a){var b=!1,m=0;(r||o)&&(n.browserIsMobile()||(m=window.innerWidth-i.getViewPort().width),i.getDocumentPort().height>i.getViewPort().height&&(b=!0)),b?(v.addClass("bp-widget__fixscroll"),m>0&&(kr(m),g.css("padding-right",m+"px")),h=!0,d.addClass("bp-widget__willFix")):h=v.hasClass("bp-widget__fixscroll")}h?navigator.userAgent.indexOf("Firefox")>=0&&d.css("overflow-y","scroll"):navigator.userAgent.indexOf("Firefox")>=0&&d.css("overflow-y",""),v.hasClass("bp-widget__fixscroll")&&d.addClass("bp-widget__bodyFixscroll");var w,_=g.css("padding-right");if(_&&_.length>0&&d.attr("data-htmlp",_),r)for(var y=Nr(f),C=y.length-1;C>=0;C--){var x=y[C].el;if(x.hasClass("bp-widget__mask")&&!d[0].isEqualNode(x[0])){w=x;break}}t.dom.probeDom(200,function(){return l(this,u),0==window.innerWidth-i.getViewPort().width}.bind(this),function(){var t=this;l(this,u),n.sleep(0).then(function(){l(this,t),d.addClass("bp-widget__invisible"),d.removeClass("bp-widget__maskTmp"),r&&(w||d.addClass("bp-widget__mask")),d.css("display","inherit")}.bind(this)).then(function(){if(l(this,t),d.hasClass("bp-widget__closing"))return Promise.reject();var e=Tr(d[0])||100;return d.removeClass("bp-widget__invisible").addClass("bp-widget__visible"),e}.bind(this)).then(function(e){return l(this,t),n.sleep(e)}.bind(this)).then(function(){if(l(this,t),d.removeClass("bp-widget__showing"),d.hasClass("bp-widget__closing")||d.hasClass("bp-widget__invisible"))return Promise.reject();r&&w?d.addClass("bp-widget__mask").addClass("bp-widget__maskNoAminate"):r&&d.addClass("bp-widget__mask"),w&&w.removeClass("bp-widget__mask").addClass("bp-widget__maskTmp").addClass("bp-widget__maskNoAminate"),s&&s()}.bind(this)).catch(function(){l(this,t)}.bind(this))}.bind(this))}}function Rr(t){var e="page"+$(".bp-navbarView_page").length,n=$("".concat(t||".bp-apiClass"));if(n.length>0){n.remove();for(var i=Nr(e),r=0;r<i.length;r++){var o=i[r].el;if(o.hasClass("bp-widget__mask"))return;if(o.hasClass("bp-widget__maskTmp"))return void o.removeClass("bp-widget__maskTmp").addClass("bp-widget__mask").removeClass("bp-widget__maskNoAminate")}!function(){$("body").removeClass("bp-widget__fixscroll");var t=$("html").css("padding-right");t&&t.length>0&&(kr(0),$("html").css("padding-right",""))}()}}function Nr(t){for(var e=this,n=$(".bp-widget[data-mark='".concat(t,"']")),i=[],r=0;r<n.length;r++){var o=$(n[r]),a=Number(o.css("z-index"))||2e3;i.push({zIndex:a,el:o})}return i.sort(function(t,n){return l(this,e),t.zIndex==n.zIndex?0:t.zIndex>n.zIndex?1:-1}.bind(this)),i}function Mr(t){window.$BpGlobalDialogComponents=n.mergeMap(t)}function Lr(){return window.$BpGlobalDialogComponents}function Fr(t){var e=this;t?t.vm.hide().then(function(n){l(this,e),$(".".concat(t.id)).remove()}.bind(this)):Rr(".bp-alertClass")}var Br=Fr,Dr=Fr;var Vr=Object.freeze({__proto__:null,hideDialog:Fr,hideAlert:Br,hideConfirm:Dr,showAlert:function(t){var e=this,i=Lr().alert;if(!i)throw new Error("dialog alert component is null");"string"!=typeof t&&"number"!=typeof t||(t={content:t.toString()}),t.title=t.title||"",t=n.mergeMap(i.data(),t);var a=n.mergeMap(i,{data:function(){return l(this,e),t}.bind(this)}),s="c"+r.uuid();$('<div id="'.concat(s,'"></div>')).appendTo($("body"));var c=new o({render:function(n){var i=this;return l(this,e),n(a,{class:["bp-apiClass","bp-alertClass",s],on:{confirm:function(){var e=this;l(this,i),t.confirm?t.confirm({vm:c.$children[0].$children[0],id:s}):c.$children[0].$children[0].hide().then(function(t){l(this,e),$(".".concat(s)).remove()}.bind(this))}.bind(this)}})}.bind(this)}).$mount("#".concat(s));return c.$children[0].$children[0].show().then(function(t){l(this,e)}.bind(this)),{vm:c.$children[0].$children[0],id:s}},showConfirm:function(t){var e=this,i=Lr().confirm;if(!i)throw new Error("dialog confirm component is null");"string"==typeof t&&(t={content:t}),t.title=t.title||"",t=n.mergeMap(i.data(),t);var a=n.mergeMap(i,{data:function(){return l(this,e),t}.bind(this)}),s="c"+r.uuid();$('<div id="'.concat(s,'"></div>')).appendTo($("body"));var c=new o({render:function(n){var i=this;return l(this,e),n(a,{class:["bp-apiClass","bp-alertClass",s],on:{confirm:function(){var e=this;l(this,i),t.confirm?t.confirm({vm:c.$children[0].$children[0],id:s}):c.$children[0].$children[0].hide().then(function(t){l(this,e),$(".".concat(s)).remove()}.bind(this))}.bind(this),cancel:function(){var e=this;l(this,i),t.cancel?t.cancel({vm:c.$children[0].$children[0],id:s}):c.$children[0].$children[0].hide().then(function(t){l(this,e),$(".".concat(s)).remove()}.bind(this))}.bind(this)}})}.bind(this)}).$mount("#".concat(s));return c.$children[0].$children[0].show().then(function(t){l(this,e)}.bind(this)),{vm:c.$children[0].$children[0],id:s}},showWidget:function(e){var n=this;if(!e||!t.dom.isVueComponent(e))throw new Error("component is null or not a Component");var i="c"+r.uuid();$('<div id="'.concat(i,'"></div>')).appendTo($("body"));var a=new o({render:function(t){var r=this;return l(this,n),t(e,{"update:visible":function(t){l(this,r),t||$(".".concat(i)).remove()}.bind(this)})}.bind(this)}).$mount("#".concat(i));return a.$children[0].$children[0].show().then(function(t){l(this,n)}.bind(this)),{vm:a.$children[0].$children[0],id:i}}}),zr="$BpGlobalLoadingTimeout",Wr="$BpGlobalLoading";function Ur(t,e){window[Wr]=null}var Gr=Object.freeze({__proto__:null,isLoadingVisible:function(){return $(".bp-loadingClass").length>0},hideLoading:function(){window[zr]&&(clearTimeout(window[zr].tm),window[zr]=null),window[Wr]&&window[Wr].$children[0].hide()},showLoading:function(e){var i=this;t.router.off("routeChanged",Ur),t.router.on("routeChanged",Ur),e||(e="");var a=Lr().loading;if(!a)throw new Error("dialog loading component is null");if(!window[Wr]){var s="c"+r.uuid();$('<div id="'.concat(s,'"></div>')).appendTo($("body"));var c=new o({render:function(t){return l(this,i),t(a,{class:["bp-apiClass","bp-loadingClass",s]})}.bind(this)}).$mount("#".concat(s));window[Wr]=c.$children[0]}"string"!=typeof e&&"number"!=typeof e||(e={content:e.toString()}),e.delay=e.delay||0,e.delay<0&&(e.delay=0);var u=Date.now();window[zr]&&(window[zr].now>u+e.delay?(clearTimeout(window[zr].tm),window[zr]=null):window[zr].cfg=n.mergeMap(e)),u+=e.delay;var d=setTimeout(function(){l(this,i);var t=window[zr].cfg;window[zr]=null,t=n.mergeMap(a.data(),t),window[Wr].$data.content=t.content,window[Wr].$children[0].show()}.bind(this),e.delay);window[zr]={tm:d,now:u,cfg:n.mergeMap(e)}}});var Xr,Hr=Object.freeze({__proto__:null,showToast:function(t){var e=this;t||(t="");var n=Lr().toast;if(!n)throw new Error("dialog toast component is null");"string"!=typeof t&&"number"!=typeof t||(t={content:t.toString()}),t.durable=t.durable||0,t.pos=t.pos||"top",t.durable<0&&(t.durable=0),0==t.durable&&(t.durable=4e3);var i="c"+r.uuid();$('<div id="'.concat(i,'"></div>')).appendTo($("body"));var a=new o({render:function(r){return l(this,e),r(n,{class:["bp-apiClass",i,"center"==t.pos?"bp-toast__center":""]})}.bind(this)}).$mount("#".concat(i));a.$children[0].$data.content=t.content,a.$children[0].$data.icon=t.icon,a.$children[0].$children[0].show().then(function(t){l(this,e)}.bind(this));var s=a.$children[0].$children[0];setTimeout(function(){var t=this;l(this,e);s&&s.hide().then(function(e){l(this,t),i&&i.length>0&&$("."+i).remove()}.bind(this))}.bind(this),t.durable)}}),Kr=c(c(c({},Vr),Gr),Hr);function Yr(t){Yr.installed&&Xr===t||(Yr.installed=!0,Xr=t,Object.defineProperty(t.prototype,"$bpWidget",{get:function(){return Kr}}))}var qr={components:{},props:{visible:Boolean,mask:{default:!0,type:Boolean},maskClose:{default:!1,type:Boolean},preventEvent:{default:!0,type:Boolean},hideBodyScroll:{default:!0,type:Boolean},pageClass:String|Array,pageStyle:String|Array|Object},watch:{visible:function(t){var e=this;t?this.show().then(function(){l(this,e)}.bind(this)):this.hide().then(function(){l(this,e)}.bind(this))}},mounted:function(){var t=this;this.visible&&this.show().then(function(){l(this,t)}.bind(this))},beforeDestroy:function(){var t=this;this.visible&&this.hide().then(function(){l(this,t)}.bind(this))},methods:{show:function(){var t=this;return new Promise(function(e){var n=this;l(this,t),Pr(this.$el,this.mask,this.preventEvent,this.hideBodyScroll,function(){l(this,n),this.$emit("update:visible",!0),e()}.bind(this))}.bind(this))},hide:function(){var t=this;return new Promise(function(e){var n=this;l(this,t),function(t,e){var n=$(t);if(n.hasClass("bp-widget__invisible")||n.hasClass("bp-widget__closing"))e&&e();else{var i="page"+$(".bp-navbarView_page").length;n.addClass("bp-widget__closing").removeClass("bp-widget__showing"),n.removeClass("bp-widget__visible").addClass("bp-widget__invisible"),n.attr("data-mark","");var r,o,a=Number(n.css("z-index"))||0,s=Nr(i),c=!1;if(s.length)for(var l=s.length-1;l>=0;l--){var u=s[l].el,d=s[l].zIndex;"none"===u[0].style.display||u.hasClass("bp-widget__closing")||u.hasClass("bp-widget__invisible")||(c=!0,!r&&d<a&&(u.hasClass("bp-widget__mask")||u.hasClass("bp-widget__maskTmp"))&&(r=u),!o&&d>a&&(o=u))}c||($("body").removeClass("bp-widget__fixscroll"),kr(0),$("html").css("padding-right","")),!o&&r&&r.removeClass("bp-widget__maskTmp").addClass("bp-widget__maskNoAminate").addClass("bp-widget__mask");var f=Tr(n[0])||100;setTimeout((function(){n.css("display","none"),n.removeClass("bp-widget__closing"),n.removeClass("bp-widget__mask"),n.removeClass("bp-widget__maskNoAminate"),!o&&r&&r.removeClass("bp-widget__maskNoAminate"),e&&e()}),f)}}(this.$el,function(){l(this,n),this.$emit("update:visible",!1),e()}.bind(this))}.bind(this))},onClickMask:function(){var t=this;this.maskClose&&this.hide().then(function(e){l(this,t)}.bind(this))}}},Jr=V("isConcatSpreadable"),Qr=di>=51||!h((function(){var t=[];return t[Jr]=!1,t.concat()[0]!==t})),Zr=xr("concat"),to=function(t){if(!g(t))return!1;var e=t[Jr];return void 0!==e?!!e:mr(t)};function eo(t,e,n,i,r,o,a,s,c,l){"boolean"!=typeof a&&(c=s,s=a,a=!1);var u,d="function"==typeof n?n.options:n;if(t&&t.render&&(d.render=t.render,d.staticRenderFns=t.staticRenderFns,d._compiled=!0,r&&(d.functional=!0)),i&&(d._scopeId=i),o?(u=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,c(t)),t&&t._registeredComponents&&t._registeredComponents.add(o)},d._ssrRegister=u):e&&(u=a?function(t){e.call(this,l(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,s(t))}),u)if(d.functional){var f=d.render;d.render=function(t,e){return u.call(e),f(t,e)}}else{var p=d.beforeCreate;d.beforeCreate=p?[].concat(p,u):[u]}return n}ie({target:"Array",proto:!0,forced:!Qr||!Zr},{concat:function(t){var e,n,i,r,o,a=ve(this),s=_r(a,0),c=0;for(e=-1,i=arguments.length;e<i;e++)if(to(o=-1===e?a:arguments[e])){if(c+(r=Nt(o.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n<r;n++,c++)n in o&&yr(s,c,o[n])}else{if(c>=9007199254740991)throw TypeError("Maximum allowed index exceeded");yr(s,c++,o)}return s.length=c,s}});var no=qr,io=function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"bp-widget",on:{click:this.onClickMask}},[e("div",{staticClass:"bp-widget__content",class:this.pageClass,style:this.pageStyle},[this._t("default")],2)])};io._withStripped=!0;var ro=eo({render:io,staticRenderFns:[]},void 0,no,void 0,!1,void 0,!1,void 0,void 0,void 0),oo={components:{bpIcon:t.VueObject.bpIcon,widget:ro},props:{visible:Boolean,mask:{default:!0,type:Boolean},maskClose:Boolean,pageClass:String|Array,pageStyle:String|Array|Object,showClose:{default:!0,type:Boolean},title:String},data:function(){return{visibleReal:!1,footClass:null}},watch:{visible:function(t){this.visibleReal=t},visibleReal:function(t){this.$emit("update:visible",t)}},beforeMount:function(){this.visibleReal=this.visible;var t=this.$slots.foot;if(t&&t[0]&&t[0].children){for(var e=0,n=0;n<t[0].children.length;n++)t[0].children[n].tag&&e++;1==e?this.footClass="bp-dialog__footOneButton":2==e?this.footClass="bp-dialog__footTwoButton":3==e&&(this.footClass="bp-dialog__footThreeButton")}},beforeDestroy:function(){},mounted:function(){},methods:{show:function(){return this.$refs.widget.show()},hide:function(){return this.$refs.widget.hide()}}},ao=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("widget",{ref:"widget",staticClass:"bp-dialog",attrs:{visible:t.visibleReal,maskClose:t.maskClose,mask:t.mask,pageClass:t.pageClass,pageStyle:t.pageStyle,preventEvent:!0},on:{"update:visible":function(e){t.visibleReal=e}}},[t.$slots.title?n("div",{staticClass:"bp-dialog__title bp-ellipsis",on:{click:function(t){t.stopPropagation()}}},[t._t("title")],2):t.title?n("div",{staticClass:"bp-dialog__title bp-ellipsis",on:{click:function(t){t.stopPropagation()}}},[t._v(t._s(t.title))]):t._e(),t._v(" "),n("div",{staticClass:"bp-dialog__main",on:{click:function(t){t.stopPropagation()}}},[t._t("default")],2),t._v(" "),t.$slots.foot?n("div",{staticClass:"bp-dialog__foot",class:t.footClass,on:{click:function(t){t.stopPropagation()}}},[t._t("foot")],2):t._e(),t._v(" "),t.showClose?n("bp-icon",{staticClass:"bp-dialog__close",attrs:{name:"bp-dialog_close"},on:{click:function(e){e.stopPropagation(),t.hide().then((function(t){}))}}}):t._e()],1)};ao._withStripped=!0;var so=eo({render:ao,staticRenderFns:[]},void 0,oo,void 0,!1,void 0,!1,void 0,void 0,void 0),co={components:{bpDialog:so},data:function(){return{title:"",content:"",okText:"确认"}}},lo=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("bp-dialog",{attrs:{title:t.title,showClose:!1}},[t._v("\n "+t._s(t.content)+"\n "),n("div",{attrs:{slot:"foot"},slot:"foot"},[n("button",{on:{click:function(e){return t.$emit("confirm")}}},[t._v(t._s(t.okText))])])])};lo._withStripped=!0;var uo=eo({render:lo,staticRenderFns:[]},void 0,co,void 0,!1,void 0,!1,void 0,void 0,void 0),fo={components:{bpDialog:so},data:function(){return{title:"",content:"",okText:"确认",cancelText:"取消"}}},po=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("bp-dialog",{attrs:{title:t.title,showClose:!1}},[t._v("\n "+t._s(t.content)+"\n "),n("div",{attrs:{slot:"foot"},slot:"foot"},[n("button",{staticStyle:{"font-weight":"500"},on:{click:function(e){return t.$emit("cancel")}}},[t._v(t._s(t.cancelText))]),t._v(" "),n("button",{on:{click:function(e){return t.$emit("confirm")}}},[t._v(t._s(t.okText))])])])};po._withStripped=!0;var ho=eo({render:po,staticRenderFns:[]},void 0,fo,void 0,!1,void 0,!1,void 0,void 0,void 0),vo={components:{bpIcon:t.VueObject.bpIcon,widget:ro},data:function(){return{content:""}}},go=function(){var t=this.$createElement,e=this._self._c||t;return e("widget",{ref:"widget",staticClass:"bp-loading",attrs:{mask:!1,preventEvent:!0}},[e("div",{staticClass:"bp-loading__main"},[e("bp-icon",{attrs:{name:"loading"}})],1),this._v(" "),e("div",{staticClass:"bp-loading__text"},[this._v("\n "+this._s(this.content)+"\n ")])])};go._withStripped=!0;var bo=eo({render:go,staticRenderFns:[]},void 0,vo,void 0,!1,void 0,!1,void 0,void 0,void 0),mo={components:{bpIcon:t.VueObject.bpIcon,widget:ro},data:function(){return{content:"",icon:null}}},wo=function(){var t=this.$createElement,e=this._self._c||t;return e("widget",{ref:"widget",staticClass:"bp-toast",attrs:{mask:!1,preventEvent:!1,hideBodyScroll:!1}},[e("div",[this.icon?e("div",{staticClass:"bp-toast__main"},[e("bp-icon",{attrs:{name:this.icon}})],1):this._e(),this._v(" "),e("div",{staticClass:"bp-toast__text"},[this._v("\n "+this._s(this.content)+"\n ")])])])};wo._withStripped=!0;var _o=eo({render:wo,staticRenderFns:[]},void 0,mo,void 0,!1,void 0,!1,void 0,void 0,void 0);function yo(t,e){var n=this;Rr(),setTimeout(function(){l(this,n);var t=$(".bp-navbarView_page").length,e=$(".bp-widget[data-mark='".concat("page"+t,"']"));if(0==e.length)$("body").removeClass("bp-widget__fixscroll"),$("html").css("padding-right","");else{for(var i=0;i<e.length;i++){var r=$(e[i]);if(r.hasClass("bp-widget__mask")&&r.hasClass("bp-widget__visible"))return void Ar(r)}$("body").removeClass("bp-widget__fixscroll"),$("html").css("padding-right","")}}.bind(this),800)}function Co(){t.icons.registerAliasIcon("bp-dialog_close","cancel"),Mr({alert:uo,confirm:ho,loading:bo,toast:_o}),t.router.off("routeChanged",yo).on("routeChanged",yo)}Co();var xo={init:Co,VuePlugin:function(){return{install:Yr}},hook:jr,registerDialogComponents:Mr,apiWidget:Kr,bpDialog:so,bpWidget:ro};export default xo; |
/*! | ||
* bpui dialog v0.1.21 | ||
* bpui dialog v0.1.22 | ||
* Copyright (c) 2020 Copyright bpoint.lee@live.com All Rights Reserved. | ||
* Released under the MIT License. | ||
*/ | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("@bpui/libs"),require("febs-browser"),require("vue")):"function"==typeof define&&define.amd?define(["@bpui/libs","febs-browser","vue"],e):(t=t||self).bpDialog=e(t.bpLibs,t.febs,t.Vue)}(this,(function(t,e,n){"use strict";function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){i(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function a(t,e){if(t!==e)throw new TypeError("Cannot instantiate an arrow function")}t=t&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t,n=n&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n;var s="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function c(t,e){return t(e={exports:{}},e.exports),e.exports}var l=function(t){return t&&t.Math==Math&&t},u=l("object"==typeof globalThis&&globalThis)||l("object"==typeof window&&window)||l("object"==typeof self&&self)||l("object"==typeof s&&s)||Function("return this")(),d=function(t){try{return!!t()}catch(t){return!0}},f=!d((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),p=function(t){return"object"==typeof t?null!==t:"function"==typeof t},h=u.document,v=p(h)&&p(h.createElement),g=function(t){return v?h.createElement(t):{}},b=!f&&!d((function(){return 7!=Object.defineProperty(g("div"),"a",{get:function(){return 7}}).a})),m=function(t){if(!p(t))throw TypeError(String(t)+" is not an object");return t},w=function(t,e){if(!p(t))return t;var n,i;if(e&&"function"==typeof(n=t.toString)&&!p(i=n.call(t)))return i;if("function"==typeof(n=t.valueOf)&&!p(i=n.call(t)))return i;if(!e&&"function"==typeof(n=t.toString)&&!p(i=n.call(t)))return i;throw TypeError("Can't convert object to primitive value")},_=Object.defineProperty,y={f:f?_:function(t,e,n){if(m(t),e=w(e,!0),m(n),b)try{return _(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},x=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},C=f?function(t,e,n){return y.f(t,e,x(1,n))}:function(t,e,n){return t[e]=n,t},E=function(t,e){try{C(u,t,e)}catch(n){u[t]=e}return e},S=u["__core-js_shared__"]||E("__core-js_shared__",{}),O=c((function(t){(t.exports=function(t,e){return S[t]||(S[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.5",mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),k={}.hasOwnProperty,j=function(t,e){return k.call(t,e)},T=0,I=Math.random(),P=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++T+I).toString(36)},A=!!Object.getOwnPropertySymbols&&!d((function(){return!String(Symbol())})),R=A&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,N=O("wks"),M=u.Symbol,F=R?M:M&&M.withoutSetter||P,L=function(t){return j(N,t)||(A&&j(M,t)?N[t]=M[t]:N[t]=F("Symbol."+t)),N[t]},z={};z[L("toStringTag")]="z";var D="[object z]"===String(z),B=Function.toString;"function"!=typeof S.inspectSource&&(S.inspectSource=function(t){return B.call(t)});var V,W,U,G=S.inspectSource,X=u.WeakMap,q="function"==typeof X&&/native code/.test(G(X)),H=O("keys"),K=function(t){return H[t]||(H[t]=P(t))},Y={},J=u.WeakMap;if(q){var Q=new J,Z=Q.get,tt=Q.has,et=Q.set;V=function(t,e){return et.call(Q,t,e),e},W=function(t){return Z.call(Q,t)||{}},U=function(t){return tt.call(Q,t)}}else{var nt=K("state");Y[nt]=!0,V=function(t,e){return C(t,nt,e),e},W=function(t){return j(t,nt)?t[nt]:{}},U=function(t){return j(t,nt)}}var it={set:V,get:W,has:U,enforce:function(t){return U(t)?W(t):V(t,{})},getterFor:function(t){return function(e){var n;if(!p(e)||(n=W(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}},rt=c((function(t){var e=it.get,n=it.enforce,i=String(String).split("String");(t.exports=function(t,e,r,o){var a=!!o&&!!o.unsafe,s=!!o&&!!o.enumerable,c=!!o&&!!o.noTargetGet;"function"==typeof r&&("string"!=typeof e||j(r,"name")||C(r,"name",e),n(r).source=i.join("string"==typeof e?e:"")),t!==u?(a?!c&&t[e]&&(s=!0):delete t[e],s?t[e]=r:C(t,e,r)):s?t[e]=r:E(e,r)})(Function.prototype,"toString",(function(){return"function"==typeof this&&e(this).source||G(this)}))})),ot={}.toString,at=function(t){return ot.call(t).slice(8,-1)},st=L("toStringTag"),ct="Arguments"==at(function(){return arguments}()),lt=D?at:function(t){var e,n,i;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),st))?n:ct?at(e):"Object"==(i=at(e))&&"function"==typeof e.callee?"Arguments":i},ut=D?{}.toString:function(){return"[object "+lt(this)+"]"};D||rt(Object.prototype,"toString",ut,{unsafe:!0});var dt=function(){var t=m(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},ft=RegExp.prototype,pt=ft.toString,ht=d((function(){return"/a/b"!=pt.call({source:"a",flags:"b"})})),vt="toString"!=pt.name;(ht||vt)&&rt(RegExp.prototype,"toString",(function(){var t=m(this),e=String(t.source),n=t.flags;return"/"+e+"/"+String(void 0===n&&t instanceof RegExp&&!("flags"in ft)?dt.call(t):n)}),{unsafe:!0});var gt={}.propertyIsEnumerable,bt=Object.getOwnPropertyDescriptor,mt={f:bt&&!gt.call({1:2},1)?function(t){var e=bt(this,t);return!!e&&e.enumerable}:gt},wt="".split,_t=d((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==at(t)?wt.call(t,""):Object(t)}:Object,yt=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},xt=function(t){return _t(yt(t))},Ct=Object.getOwnPropertyDescriptor,$t={f:f?Ct:function(t,e){if(t=xt(t),e=w(e,!0),b)try{return Ct(t,e)}catch(t){}if(j(t,e))return x(!mt.f.call(t,e),t[e])}},Et=u,St=function(t){return"function"==typeof t?t:void 0},Ot=function(t,e){return arguments.length<2?St(Et[t])||St(u[t]):Et[t]&&Et[t][e]||u[t]&&u[t][e]},kt=Math.ceil,jt=Math.floor,Tt=function(t){return isNaN(t=+t)?0:(t>0?jt:kt)(t)},It=Math.min,Pt=function(t){return t>0?It(Tt(t),9007199254740991):0},At=Math.max,Rt=Math.min,Nt=function(t,e){var n=Tt(t);return n<0?At(n+e,0):Rt(n,e)},Mt=function(t){return function(e,n,i){var r,o=xt(e),a=Pt(o.length),s=Nt(i,a);if(t&&n!=n){for(;a>s;)if((r=o[s++])!=r)return!0}else for(;a>s;s++)if((t||s in o)&&o[s]===n)return t||s||0;return!t&&-1}},Ft={includes:Mt(!0),indexOf:Mt(!1)},Lt=Ft.indexOf,zt=function(t,e){var n,i=xt(t),r=0,o=[];for(n in i)!j(Y,n)&&j(i,n)&&o.push(n);for(;e.length>r;)j(i,n=e[r++])&&(~Lt(o,n)||o.push(n));return o},Dt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Bt=Dt.concat("length","prototype"),Vt={f:Object.getOwnPropertyNames||function(t){return zt(t,Bt)}},Wt={f:Object.getOwnPropertySymbols},Ut=Ot("Reflect","ownKeys")||function(t){var e=Vt.f(m(t)),n=Wt.f;return n?e.concat(n(t)):e},Gt=function(t,e){for(var n=Ut(e),i=y.f,r=$t.f,o=0;o<n.length;o++){var a=n[o];j(t,a)||i(t,a,r(e,a))}},Xt=/#|\.prototype\./,qt=function(t,e){var n=Kt[Ht(t)];return n==Jt||n!=Yt&&("function"==typeof e?d(e):!!e)},Ht=qt.normalize=function(t){return String(t).replace(Xt,".").toLowerCase()},Kt=qt.data={},Yt=qt.NATIVE="N",Jt=qt.POLYFILL="P",Qt=qt,Zt=$t.f,te=function(t,e){var n,i,r,o,a,s=t.target,c=t.global,l=t.stat;if(n=c?u:l?u[s]||E(s,{}):(u[s]||{}).prototype)for(i in e){if(o=e[i],r=t.noTargetGet?(a=Zt(n,i))&&a.value:n[i],!Qt(c?i:s+(l?".":"#")+i,t.forced)&&void 0!==r){if(typeof o==typeof r)continue;Gt(o,r)}(t.sham||r&&r.sham)&&C(o,"sham",!0),rt(n,i,o,t)}},ee=function(t,e){var n=[][t];return!!n&&d((function(){n.call(null,e||function(){throw 1},1)}))},ne=Object.defineProperty,ie={},re=function(t){throw t},oe=function(t,e){if(j(ie,t))return ie[t];e||(e={});var n=[][t],i=!!j(e,"ACCESSORS")&&e.ACCESSORS,r=j(e,0)?e[0]:re,o=j(e,1)?e[1]:void 0;return ie[t]=!!n&&!d((function(){if(i&&!f)return!0;var t={length:-1};i?ne(t,1,{enumerable:!0,get:re}):t[1]=1,n.call(t,r,o)}))},ae=Ft.indexOf,se=[].indexOf,ce=!!se&&1/[1].indexOf(1,-0)<0,le=ee("indexOf"),ue=oe("indexOf",{ACCESSORS:!0,1:0});te({target:"Array",proto:!0,forced:ce||!le||!ue},{indexOf:function(t){return ce?se.apply(this,arguments)||0:ae(this,t,arguments.length>1?arguments[1]:void 0)}});var de=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t},fe=function(t){return Object(yt(t))},pe=[],he=pe.sort,ve=d((function(){pe.sort(void 0)})),ge=d((function(){pe.sort(null)})),be=ee("sort");te({target:"Array",proto:!0,forced:ve||!ge||!be},{sort:function(t){return void 0===t?he.call(fe(this)):he.call(fe(this),de(t))}});var me,we=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),e=n instanceof Array}catch(t){}return function(n,i){return m(n),function(t){if(!p(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype")}(i),e?t.call(n,i):n.__proto__=i,n}}():void 0),_e=function(t,e,n){var i,r;return we&&"function"==typeof(i=e.constructor)&&i!==n&&p(r=i.prototype)&&r!==n.prototype&&we(t,r),t},ye=Object.keys||function(t){return zt(t,Dt)},xe=f?Object.defineProperties:function(t,e){m(t);for(var n,i=ye(e),r=i.length,o=0;r>o;)y.f(t,n=i[o++],e[n]);return t},Ce=Ot("document","documentElement"),$e=K("IE_PROTO"),Ee=function(){},Se=function(t){return"<script>"+t+"<\/script>"},Oe=function(){try{me=document.domain&&new ActiveXObject("htmlfile")}catch(t){}var t,e;Oe=me?function(t){t.write(Se("")),t.close();var e=t.parentWindow.Object;return t=null,e}(me):((e=g("iframe")).style.display="none",Ce.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(Se("document.F=Object")),t.close(),t.F);for(var n=Dt.length;n--;)delete Oe.prototype[Dt[n]];return Oe()};Y[$e]=!0;var ke=Object.create||function(t,e){var n;return null!==t?(Ee.prototype=m(t),n=new Ee,Ee.prototype=null,n[$e]=t):n=Oe(),void 0===e?n:xe(n,e)},je="\t\n\v\f\r \u2028\u2029\ufeff",Te="["+je+"]",Ie=RegExp("^"+Te+Te+"*"),Pe=RegExp(Te+Te+"*$"),Ae=function(t){return function(e){var n=String(yt(e));return 1&t&&(n=n.replace(Ie,"")),2&t&&(n=n.replace(Pe,"")),n}},Re={start:Ae(1),end:Ae(2),trim:Ae(3)},Ne=Vt.f,Me=$t.f,Fe=y.f,Le=Re.trim,ze=u.Number,De=ze.prototype,Be="Number"==at(ke(De)),Ve=function(t){var e,n,i,r,o,a,s,c,l=w(t,!1);if("string"==typeof l&&l.length>2)if(43===(e=(l=Le(l)).charCodeAt(0))||45===e){if(88===(n=l.charCodeAt(2))||120===n)return NaN}else if(48===e){switch(l.charCodeAt(1)){case 66:case 98:i=2,r=49;break;case 79:case 111:i=8,r=55;break;default:return+l}for(a=(o=l.slice(2)).length,s=0;s<a;s++)if((c=o.charCodeAt(s))<48||c>r)return NaN;return parseInt(o,i)}return+l};if(Qt("Number",!ze(" 0o1")||!ze("0b1")||ze("+0x1"))){for(var We,Ue=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof Ue&&(Be?d((function(){De.valueOf.call(n)})):"Number"!=at(n))?_e(new ze(Ve(e)),n,Ue):Ve(e)},Ge=f?Ne(ze):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),Xe=0;Ge.length>Xe;Xe++)j(ze,We=Ge[Xe])&&!j(Ue,We)&&Fe(Ue,We,Me(ze,We));Ue.prototype=De,De.constructor=Ue,rt(u,"Number",Ue)}function qe(t,e){return RegExp(t,e)}var He,Ke,Ye={UNSUPPORTED_Y:d((function(){var t=qe("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),BROKEN_CARET:d((function(){var t=qe("^r","gy");return t.lastIndex=2,null!=t.exec("str")}))},Je=RegExp.prototype.exec,Qe=String.prototype.replace,Ze=Je,tn=(He=/a/,Ke=/b*/g,Je.call(He,"a"),Je.call(Ke,"a"),0!==He.lastIndex||0!==Ke.lastIndex),en=Ye.UNSUPPORTED_Y||Ye.BROKEN_CARET,nn=void 0!==/()??/.exec("")[1];(tn||nn||en)&&(Ze=function(t){var e,n,i,r,o=this,a=en&&o.sticky,s=dt.call(o),c=o.source,l=0,u=t;return a&&(-1===(s=s.replace("y","")).indexOf("g")&&(s+="g"),u=String(t).slice(o.lastIndex),o.lastIndex>0&&(!o.multiline||o.multiline&&"\n"!==t[o.lastIndex-1])&&(c="(?: "+c+")",u=" "+u,l++),n=new RegExp("^(?:"+c+")",s)),nn&&(n=new RegExp("^"+c+"$(?!\\s)",s)),tn&&(e=o.lastIndex),i=Je.call(a?n:o,u),a?i?(i.input=i.input.slice(l),i[0]=i[0].slice(l),i.index=o.lastIndex,o.lastIndex+=i[0].length):o.lastIndex=0:tn&&i&&(o.lastIndex=o.global?i.index+i[0].length:e),nn&&i&&i.length>1&&Qe.call(i[0],n,(function(){for(r=1;r<arguments.length-2;r++)void 0===arguments[r]&&(i[r]=void 0)})),i});var rn=Ze;te({target:"RegExp",proto:!0,forced:/./.exec!==rn},{exec:rn});var on=L("species"),an=!d((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),sn="$0"==="a".replace(/./,"$0"),cn=L("replace"),ln=!!/./[cn]&&""===/./[cn]("a","$0"),un=!d((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),dn=function(t,e,n,i){var r=L(t),o=!d((function(){var e={};return e[r]=function(){return 7},7!=""[t](e)})),a=o&&!d((function(){var e=!1,n=/a/;return"split"===t&&((n={}).constructor={},n.constructor[on]=function(){return n},n.flags="",n[r]=/./[r]),n.exec=function(){return e=!0,null},n[r](""),!e}));if(!o||!a||"replace"===t&&(!an||!sn||ln)||"split"===t&&!un){var s=/./[r],c=n(r,""[t],(function(t,e,n,i,r){return e.exec===rn?o&&!r?{done:!0,value:s.call(e,n,i)}:{done:!0,value:t.call(n,e,i)}:{done:!1}}),{REPLACE_KEEPS_$0:sn,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:ln}),l=c[0],u=c[1];rt(String.prototype,t,l),rt(RegExp.prototype,r,2==e?function(t,e){return u.call(t,this,e)}:function(t){return u.call(t,this)})}i&&C(RegExp.prototype[r],"sham",!0)},fn=function(t){return function(e,n){var i,r,o=String(yt(e)),a=Tt(n),s=o.length;return a<0||a>=s?t?"":void 0:(i=o.charCodeAt(a))<55296||i>56319||a+1===s||(r=o.charCodeAt(a+1))<56320||r>57343?t?o.charAt(a):i:t?o.slice(a,a+2):r-56320+(i-55296<<10)+65536}},pn={codeAt:fn(!1),charAt:fn(!0)}.charAt,hn=function(t,e,n){return e+(n?pn(t,e).length:1)},vn=function(t,e){var n=t.exec;if("function"==typeof n){var i=n.call(t,e);if("object"!=typeof i)throw TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==at(t))throw TypeError("RegExp#exec called on incompatible receiver");return rn.call(t,e)},gn=Math.max,bn=Math.min,mn=Math.floor,wn=/\$([$&'`]|\d\d?|<[^>]*>)/g,_n=/\$([$&'`]|\d\d?)/g;dn("replace",2,(function(t,e,n,i){var r=i.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,o=i.REPLACE_KEEPS_$0,a=r?"$":"$0";return[function(n,i){var r=yt(this),o=null==n?void 0:n[t];return void 0!==o?o.call(n,r,i):e.call(String(r),n,i)},function(t,i){if(!r&&o||"string"==typeof i&&-1===i.indexOf(a)){var c=n(e,t,this,i);if(c.done)return c.value}var l=m(t),u=String(this),d="function"==typeof i;d||(i=String(i));var f=l.global;if(f){var p=l.unicode;l.lastIndex=0}for(var h=[];;){var v=vn(l,u);if(null===v)break;if(h.push(v),!f)break;""===String(v[0])&&(l.lastIndex=hn(u,Pt(l.lastIndex),p))}for(var g,b="",w=0,_=0;_<h.length;_++){v=h[_];for(var y=String(v[0]),x=gn(bn(Tt(v.index),u.length),0),C=[],$=1;$<v.length;$++)C.push(void 0===(g=v[$])?g:String(g));var E=v.groups;if(d){var S=[y].concat(C,x,u);void 0!==E&&S.push(E);var O=String(i.apply(void 0,S))}else O=s(y,u,x,C,E,i);x>=w&&(b+=u.slice(w,x)+O,w=x+y.length)}return b+u.slice(w)}];function s(t,n,i,r,o,a){var s=i+t.length,c=r.length,l=_n;return void 0!==o&&(o=fe(o),l=wn),e.call(a,l,(function(e,a){var l;switch(a.charAt(0)){case"$":return"$";case"&":return t;case"`":return n.slice(0,i);case"'":return n.slice(s);case"<":l=o[a.slice(1,-1)];break;default:var u=+a;if(0===u)return e;if(u>c){var d=mn(u/10);return 0===d?e:d<=c?void 0===r[d-1]?a.charAt(1):r[d-1]+a.charAt(1):e}l=r[u-1]}return void 0===l?"":l}))}}));var yn=L("match"),xn=L("species"),Cn=function(t,e){var n,i=m(t).constructor;return void 0===i||null==(n=m(i)[xn])?e:de(n)},$n=[].push,En=Math.min,Sn=!d((function(){return!RegExp(4294967295,"y")}));dn("split",2,(function(t,e,n){var i;return i="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,n){var i,r,o=String(yt(this)),a=void 0===n?4294967295:n>>>0;if(0===a)return[];if(void 0===t)return[o];if(!p(i=t)||!(void 0!==(r=i[yn])?r:"RegExp"==at(i)))return e.call(o,t,a);for(var s,c,l,u=[],d=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),f=0,h=new RegExp(t.source,d+"g");(s=rn.call(h,o))&&!((c=h.lastIndex)>f&&(u.push(o.slice(f,s.index)),s.length>1&&s.index<o.length&&$n.apply(u,s.slice(1)),l=s[0].length,f=c,u.length>=a));)h.lastIndex===s.index&&h.lastIndex++;return f===o.length?!l&&h.test("")||u.push(""):u.push(o.slice(f)),u.length>a?u.slice(0,a):u}:"0".split(void 0,0).length?function(t,n){return void 0===t&&0===n?[]:e.call(this,t,n)}:e,[function(e,n){var r=yt(this),o=null==e?void 0:e[t];return void 0!==o?o.call(e,r,n):i.call(String(r),e,n)},function(t,r){var o=n(i,t,this,r,i!==e);if(o.done)return o.value;var a=m(t),s=String(this),c=Cn(a,RegExp),l=a.unicode,u=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(Sn?"y":"g"),d=new c(Sn?a:"^(?:"+a.source+")",u),f=void 0===r?4294967295:r>>>0;if(0===f)return[];if(0===s.length)return null===vn(d,s)?[s]:[];for(var p=0,h=0,v=[];h<s.length;){d.lastIndex=Sn?h:0;var g,b=vn(d,Sn?s:s.slice(h));if(null===b||(g=En(Pt(d.lastIndex+(Sn?0:h)),s.length))===p)h=hn(s,h,l);else{if(v.push(s.slice(p,h)),v.length===f)return v;for(var w=1;w<=b.length-1;w++)if(v.push(b[w]),v.length===f)return v;h=p=g}}return v.push(s.slice(p)),v}]}),!Sn);var On,kn=Re.trim;te({target:"String",proto:!0,forced:(On="trim",d((function(){return!!je[On]()||" "!=" "[On]()||je[On].name!==On})))},{trim:function(){return kn(this)}});var jn,Tn,In=Array.isArray||function(t){return"Array"==at(t)},Pn=L("species"),An=function(t,e){var n;return In(t)&&("function"!=typeof(n=t.constructor)||n!==Array&&!In(n.prototype)?p(n)&&null===(n=n[Pn])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===e?0:e)},Rn=function(t,e,n){var i=w(e);i in t?y.f(t,i,x(0,n)):t[i]=n},Nn=Ot("navigator","userAgent")||"",Mn=u.process,Fn=Mn&&Mn.versions,Ln=Fn&&Fn.v8;Ln?Tn=(jn=Ln.split("."))[0]+jn[1]:Nn&&(!(jn=Nn.match(/Edge\/(\d+)/))||jn[1]>=74)&&(jn=Nn.match(/Chrome\/(\d+)/))&&(Tn=jn[1]);var zn=Tn&&+Tn,Dn=L("species"),Bn=function(t){return zn>=51||!d((function(){var e=[];return(e.constructor={})[Dn]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},Vn=Bn("splice"),Wn=oe("splice",{ACCESSORS:!0,0:0,1:2}),Un=Math.max,Gn=Math.min;te({target:"Array",proto:!0,forced:!Vn||!Wn},{splice:function(t,e){var n,i,r,o,a,s,c=fe(this),l=Pt(c.length),u=Nt(t,l),d=arguments.length;if(0===d?n=i=0:1===d?(n=0,i=l-u):(n=d-2,i=Gn(Un(Tt(e),0),l-u)),l+n-i>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(r=An(c,i),o=0;o<i;o++)(a=u+o)in c&&Rn(r,o,c[a]);if(r.length=i,n<i){for(o=u;o<l-i;o++)s=o+n,(a=o+i)in c?c[s]=c[a]:delete c[s];for(o=l;o>l-i+n;o--)delete c[o-1]}else if(n>i)for(o=l-i;o>u;o--)s=o+n-1,(a=o+i-1)in c?c[s]=c[a]:delete c[s];for(o=0;o<n;o++)c[o+u]=arguments[o+2];return c.length=l-i+n,r}});function Xn(t){var e=window.$BpGlobalWidgetHook;if(e)for(var n=0;n<e.length;n++)e[n]&&e[n](t)}var qn=Object.freeze({__proto__:null,addWidgetShake:function(t){window.$BpGlobalWidgetHook||(window.$BpGlobalWidgetHook=[]);var e=window.$BpGlobalWidgetHook;e.indexOf(t)<0&&e.push(t)},removeWidgetShake:function(t){var e=window.$BpGlobalWidgetHook;e&&e.indexOf(t)>=0&&e.splice(0,1)},callWidgetShake:Xn});function Hn(t){var n=window.getComputedStyle(t,null);return n=(n=n?n["transition-duration"]:"0.1s").split(",")[0],n=e.string.trim(n),n=e.string.replace(n,"s",""),n=parseFloat(n),n=Math.ceil(1e3*n)||100}function Kn(t){return"touchmove"==t.type||"mousewheel"==t.type||t.preventDefault(),!1}function Yn(t){t.hasClass("bp-widget__bodyFixscroll")&&$("body").addClass("bp-widget__fixscroll");var n=t.attr("data-htmlp");if(n.length>0){var i=e.string.replace(n,"px","");Xn(i=parseInt(i)||0),$("html").css("padding-right",n)}}function Jn(n,i,r,o,s){var c,l=this,u=$(n);if(r&&((c=u)&&!e.dom.isDom(c)&&(c=c[0]),c&&(e.utils.browserIsMobile()?(e.dom.removeEventListener(c,"touchmove",Kn),e.dom.addEventListener(c,"touchmove",Kn),e.dom.removeEventListener(c,"touchup",Kn),e.dom.addEventListener(c,"touchup",Kn),e.dom.removeEventListener(c,"touchdown",Kn),e.dom.addEventListener(c,"touchdown",Kn)):(e.dom.removeEventListener(c,"mousewheel",Kn),e.dom.addEventListener(c,"mousewheel",Kn),e.dom.removeEventListener(c,"mouseover",Kn),e.dom.addEventListener(c,"mouseover",Kn)),e.dom.removeEventListener(c,"click",Kn),e.dom.addEventListener(c,"click",Kn))),u.hasClass("bp-widget__visible"))s&&s();else{!function(t){navigator.userAgent.toLowerCase().indexOf("baidu")>=0&&t.css("backdrop-filter","none")}(u);var d=!1,f=$("body"),p=$("html");if(o){var h=!1,v=0;(i||r)&&(e.utils.browserIsMobile()?e.dom.getDocumentPort().height>e.dom.getViewPort().height&&(h=!0):(v=window.innerWidth-e.dom.getViewPort().width)>0&&(h=!0)),h?(f.addClass("bp-widget__fixscroll"),v>0&&(Xn(v),p.css("padding-right",v+"px")),d=!0,u.addClass("bp-widget__willFix")):d=f.hasClass("bp-widget__fixscroll")}d?navigator.userAgent.indexOf("Firefox")>=0&&u.css("overflow-y","scroll"):navigator.userAgent.indexOf("Firefox")>=0&&u.css("overflow-y","");var g="page"+$(".bp-navbarView_page").length,b=function(t){for(var e=2e3,n=$(".bp-widget[data-mark='".concat(t,"']")),i=0;i<n.length;i++){var r=Number($(n[i]).css("z-index"))||0;r>e&&(e=r)}return e}(g)+2;u.css("z-index",b),f.hasClass("bp-widget__fixscroll")&&u.addClass("bp-widget__bodyFixscroll");var m=p.css("padding-right");m.length>0&&u.attr("data-htmlp",m);for(var w,_=[],y=$(".bp-widget[data-mark='".concat(g,"']")),x=0;x<y.length;x++){var C=$(y[x]),E=Number(C.css("z-index"))||0;_.push({zIndex:E,el:C})}if(i){_.sort(function(t,e){return a(this,l),t.zIndex==e.zIndex?0:t.zIndex>e.zIndex?1:-1}.bind(this));for(var S=_.length-1;S>=0;S--){var O=_[S].el;if(O.hasClass("bp-widget__mask")&&!u[0].isEqualNode(O[0])){w=O;break}}}t.dom.probeDom(200,function(){return a(this,l),0==window.innerWidth-e.dom.getViewPort().width}.bind(this),function(){var t=this;a(this,l),e.utils.sleep(0).then(function(){a(this,t),u.attr("data-mark",g),u.addClass("bp-widget__invisible"),u.removeClass("bp-widget__maskTmp"),i&&(w||u.addClass("bp-widget__mask")),u.css("display","inherit")}.bind(this)).then(function(){return a(this,t),e.utils.sleep(10)}.bind(this)).then(function(){if(a(this,t),!u.hasClass("bp-widget__closing")){var e=Hn(u[0])||100;return u.removeClass("bp-widget__invisible").addClass("bp-widget__visible"),e}s&&s()}.bind(this)).then(function(n){return a(this,t),e.utils.sleep(n)}.bind(this)).then(function(){a(this,t),u.hasClass("bp-widget__closing")||(i&&w?u.addClass("bp-widget__mask").addClass("bp-widget__maskNoAminate"):i&&u.addClass("bp-widget__mask"),w&&w.removeClass("bp-widget__mask").addClass("bp-widget__maskTmp").addClass("bp-widget__maskNoAminate")),s&&s()}.bind(this))}.bind(this))}}function Qn(t){var e=this,n="page"+$(".bp-navbarView_page").length,i=$("".concat(t||".bp-apiClass"));if(i.length>0){i.remove();for(var r=[],o=$(".bp-widget[data-mark='".concat(n,"']")),s=0;s<o.length;s++){var c=$(o[s]),l=Number(c.css("z-index"))||0;r.push({zIndex:l,el:c})}r.sort(function(t,n){return a(this,e),t.zIndex==n.zIndex?0:t.zIndex>n.zIndex?-1:1}.bind(this));for(var u=0;u<r.length;u++){var d=r[u].el;if(d.hasClass("bp-widget__mask"))return;if(d.hasClass("bp-widget__maskTmp"))return void d.removeClass("bp-widget__maskTmp").addClass("bp-widget__mask").removeClass("bp-widget__maskNoAminate")}!function(){$("body").removeClass("bp-widget__fixscroll");var t=$("html").css("padding-right");t&&t.length>0&&(Xn(0),$("html").css("padding-right",""))}()}}function Zn(t,e){var n=this,i=$(t);if(i.hasClass("bp-widget__invisible"))e&&e();else if(i.hasClass("bp-widget__closing"))e&&e();else{i.addClass("bp-widget__closing");for(var r,o,s="page"+$(".bp-navbarView_page").length,c=Number(i.css("z-index")),l=i.hasClass("bp-widget__mask"),u=i.hasClass("bp-widget__maskTmp"),d=i.hasClass("bp-widget__willFix"),f=[],p=$(".bp-widget[data-mark='".concat(s,"']")),h=0;h<p.length;h++){var v=$(p[h]),g=Number(v.css("z-index"))||0;f.push({zIndex:g,el:v})}if(f.sort(function(t,e){return a(this,n),t.zIndex==e.zIndex?0:t.zIndex>e.zIndex?-1:1}.bind(this)),!u&&l)for(var b=0;b<f.length;b++){var m=f[b].el;if(Number(m.css("z-index"))<c&&(o||(o=m),m.hasClass("bp-widget__maskTmp"))){r=m;break}}i.attr("data-mark",""),i.removeClass("bp-widget__visible").addClass("bp-widget__invisible");var w=Hn(i[0])||100;r&&r.removeClass("bp-widget__maskTmp").addClass("bp-widget__mask"),setTimeout((function(){i.css("display","none"),i.removeClass("bp-widget__mask").removeClass("bp-widget__closing").removeClass("bp-widget__maskNoAminate"),r&&r.removeClass("bp-widget__maskNoAminate"),e&&e(),d&&(o?function(t){t.hasClass("bp-widget__bodyFixscroll")||$("body").removeClass("bp-widget__fixscroll"),t.attr("data-htmlp").length<=0&&(Xn(0),$("html").css("padding-right",""))}(o):($("body").removeClass("bp-widget__fixscroll"),Xn(0),$("html").css("padding-right","")))}),w+10)}}function ti(t){window.$BpGlobalDialogComponents=e.utils.mergeMap(t)}function ei(){return window.$BpGlobalDialogComponents}function ni(t){var e=this;t?t.vm.hide().then(function(n){a(this,e),$(".".concat(t.id)).remove()}.bind(this)):Qn(".bp-alertClass")}var ii=ni,ri=ni;var oi=Object.freeze({__proto__:null,hideDialog:ni,hideAlert:ii,hideConfirm:ri,showAlert:function(t){var i=this,r=ei().alert;if(!r)throw new Error("dialog alert component is null");"string"!=typeof t&&"number"!=typeof t||(t={content:t.toString()}),t.title=t.title||"",t=e.utils.mergeMap(r.data(),t);var o=e.utils.mergeMap(r,{data:function(){return a(this,i),t}.bind(this)}),s="c"+e.crypt.uuid();$('<div id="'.concat(s,'"></div>')).appendTo($("body"));var c=new n({render:function(e){var n=this;return a(this,i),e(o,{class:["bp-apiClass","bp-alertClass",s],on:{confirm:function(){var e=this;a(this,n),t.confirm?t.confirm({vm:c.$children[0].$children[0],id:s}):c.$children[0].$children[0].hide().then(function(t){a(this,e),$(".".concat(s)).remove()}.bind(this))}.bind(this)}})}.bind(this)}).$mount("#".concat(s));return c.$children[0].$children[0].show().then(function(t){a(this,i)}.bind(this)),{vm:c.$children[0].$children[0],id:s}},showConfirm:function(t){var i=this,r=ei().confirm;if(!r)throw new Error("dialog confirm component is null");"string"==typeof t&&(t={content:t}),t.title=t.title||"",t=e.utils.mergeMap(r.data(),t);var o=e.utils.mergeMap(r,{data:function(){return a(this,i),t}.bind(this)}),s="c"+e.crypt.uuid();$('<div id="'.concat(s,'"></div>')).appendTo($("body"));var c=new n({render:function(e){var n=this;return a(this,i),e(o,{class:["bp-apiClass","bp-alertClass",s],on:{confirm:function(){var e=this;a(this,n),t.confirm?t.confirm({vm:c.$children[0].$children[0],id:s}):c.$children[0].$children[0].hide().then(function(t){a(this,e),$(".".concat(s)).remove()}.bind(this))}.bind(this),cancel:function(){var e=this;a(this,n),t.cancel?t.cancel({vm:c.$children[0].$children[0],id:s}):c.$children[0].$children[0].hide().then(function(t){a(this,e),$(".".concat(s)).remove()}.bind(this))}.bind(this)}})}.bind(this)}).$mount("#".concat(s));return c.$children[0].$children[0].show().then(function(t){a(this,i)}.bind(this)),{vm:c.$children[0].$children[0],id:s}},showWidget:function(i){var r=this;if(!i||!t.dom.isVueComponent(i))throw new Error("component is null or not a Component");var o="c"+e.crypt.uuid();$('<div id="'.concat(o,'"></div>')).appendTo($("body"));var s=new n({render:function(t){var e=this;return a(this,r),t(i,{"update:visible":function(t){a(this,e),t||$(".".concat(o)).remove()}.bind(this)})}.bind(this)}).$mount("#".concat(o));return s.$children[0].$children[0].show().then(function(t){a(this,r)}.bind(this)),{vm:s.$children[0].$children[0],id:o}}}),ai="$BpGlobalLoadingTimeout",si="$BpGlobalLoading";function ci(t,e){window[si]=null}var li=Object.freeze({__proto__:null,isLoadingVisible:function(){return $(".bp-loadingClass").length>0},hideLoading:function(){window[ai]&&(clearTimeout(window[ai].tm),window[ai]=null),window[si]&&window[si].$children[0].hide()},showLoading:function(i){var r=this;t.router.off("routeChanged",ci),t.router.on("routeChanged",ci),i||(i="");var o=ei().loading;if(!o)throw new Error("dialog loading component is null");if(!window[si]){var s="c"+e.crypt.uuid();$('<div id="'.concat(s,'"></div>')).appendTo($("body"));var c=new n({render:function(t){return a(this,r),t(o,{class:["bp-apiClass","bp-loadingClass",s]})}.bind(this)}).$mount("#".concat(s));window[si]=c.$children[0]}"string"!=typeof i&&"number"!=typeof i||(i={content:i.toString()}),i.delay=i.delay||0,i.delay<0&&(i.delay=0);var l=Date.now();window[ai]&&(window[ai].now>l+i.delay?(clearTimeout(window[ai].tm),window[ai]=null):window[ai].cfg=e.utils.mergeMap(i)),l+=i.delay;var u=setTimeout(function(){a(this,r);var t=window[ai].cfg;window[ai]=null,t=e.utils.mergeMap(o.data(),t),window[si].$data.content=t.content,window[si].$children[0].show()}.bind(this),i.delay);window[ai]={tm:u,now:l,cfg:e.utils.mergeMap(i)}}});var ui,di=Object.freeze({__proto__:null,showToast:function(t){var i=this;t||(t="");var r=ei().toast;if(!r)throw new Error("dialog toast component is null");"string"!=typeof t&&"number"!=typeof t||(t={content:t.toString()}),t.durable=t.durable||0,t.pos=t.pos||"top",t.durable<0&&(t.durable=0),0==t.durable&&(t.durable=4e3);var o="c"+e.crypt.uuid();$('<div id="'.concat(o,'"></div>')).appendTo($("body"));var s=new n({render:function(e){return a(this,i),e(r,{class:["bp-apiClass",o,"center"==t.pos?"bp-toast__center":""]})}.bind(this)}).$mount("#".concat(o));s.$children[0].$data.content=t.content,s.$children[0].$data.icon=t.icon,s.$children[0].$children[0].show().then(function(t){a(this,i)}.bind(this));var c=s.$children[0].$children[0];setTimeout(function(){var t=this;a(this,i);c&&c.hide().then(function(e){a(this,t),o&&o.length>0&&$("."+o).remove()}.bind(this))}.bind(this),t.durable)}}),fi=o(o(o({},oi),li),di);function pi(t){pi.installed&&ui===t||(pi.installed=!0,ui=t,Object.defineProperty(t.prototype,"$bpWidget",{get:function(){return fi}}))}var hi=u.Promise,vi=y.f,gi=L("toStringTag"),bi=L("species"),mi={},wi=L("iterator"),_i=Array.prototype,yi=function(t,e,n){if(de(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(n){return t.call(e,n)};case 2:return function(n,i){return t.call(e,n,i)};case 3:return function(n,i,r){return t.call(e,n,i,r)}}return function(){return t.apply(e,arguments)}},xi=L("iterator"),Ci=function(t,e,n,i){try{return i?e(m(n)[0],n[1]):e(n)}catch(e){var r=t.return;throw void 0!==r&&m(r.call(t)),e}},$i=c((function(t){var e=function(t,e){this.stopped=t,this.result=e};(t.exports=function(t,n,i,r,o){var a,s,c,l,u,d,f,p,h=yi(n,i,r?2:1);if(o)a=t;else{if("function"!=typeof(s=function(t){if(null!=t)return t[xi]||t["@@iterator"]||mi[lt(t)]}(t)))throw TypeError("Target is not iterable");if(void 0!==(p=s)&&(mi.Array===p||_i[wi]===p)){for(c=0,l=Pt(t.length);l>c;c++)if((u=r?h(m(f=t[c])[0],f[1]):h(t[c]))&&u instanceof e)return u;return new e(!1)}a=s.call(t)}for(d=a.next;!(f=d.call(a)).done;)if("object"==typeof(u=Ci(a,h,f.value,r))&&u&&u instanceof e)return u;return new e(!1)}).stop=function(t){return new e(!0,t)}})),Ei=L("iterator"),Si=!1;try{var Oi=0,ki={next:function(){return{done:!!Oi++}},return:function(){Si=!0}};ki[Ei]=function(){return this},Array.from(ki,(function(){throw 2}))}catch(t){}var ji,Ti,Ii,Pi=/(iphone|ipod|ipad).*applewebkit/i.test(Nn),Ai=u.location,Ri=u.setImmediate,Ni=u.clearImmediate,Mi=u.process,Fi=u.MessageChannel,Li=u.Dispatch,zi=0,Di={},Bi=function(t){if(Di.hasOwnProperty(t)){var e=Di[t];delete Di[t],e()}},Vi=function(t){return function(){Bi(t)}},Wi=function(t){Bi(t.data)},Ui=function(t){u.postMessage(t+"",Ai.protocol+"//"+Ai.host)};Ri&&Ni||(Ri=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return Di[++zi]=function(){("function"==typeof t?t:Function(t)).apply(void 0,e)},ji(zi),zi},Ni=function(t){delete Di[t]},"process"==at(Mi)?ji=function(t){Mi.nextTick(Vi(t))}:Li&&Li.now?ji=function(t){Li.now(Vi(t))}:Fi&&!Pi?(Ii=(Ti=new Fi).port2,Ti.port1.onmessage=Wi,ji=yi(Ii.postMessage,Ii,1)):!u.addEventListener||"function"!=typeof postMessage||u.importScripts||d(Ui)||"file:"===Ai.protocol?ji="onreadystatechange"in g("script")?function(t){Ce.appendChild(g("script")).onreadystatechange=function(){Ce.removeChild(this),Bi(t)}}:function(t){setTimeout(Vi(t),0)}:(ji=Ui,u.addEventListener("message",Wi,!1)));var Gi,Xi,qi,Hi,Ki,Yi,Ji,Qi,Zi={set:Ri,clear:Ni},tr=$t.f,er=Zi.set,nr=u.MutationObserver||u.WebKitMutationObserver,ir=u.process,rr=u.Promise,or="process"==at(ir),ar=tr(u,"queueMicrotask"),sr=ar&&ar.value;sr||(Gi=function(){var t,e;for(or&&(t=ir.domain)&&t.exit();Xi;){e=Xi.fn,Xi=Xi.next;try{e()}catch(t){throw Xi?Hi():qi=void 0,t}}qi=void 0,t&&t.enter()},or?Hi=function(){ir.nextTick(Gi)}:nr&&!Pi?(Ki=!0,Yi=document.createTextNode(""),new nr(Gi).observe(Yi,{characterData:!0}),Hi=function(){Yi.data=Ki=!Ki}):rr&&rr.resolve?(Ji=rr.resolve(void 0),Qi=Ji.then,Hi=function(){Qi.call(Ji,Gi)}):Hi=function(){er.call(u,Gi)});var cr,lr,ur,dr,fr,pr,hr,vr=sr||function(t){var e={fn:t,next:void 0};qi&&(qi.next=e),Xi||(Xi=e,Hi()),qi=e},gr=function(t){var e,n;this.promise=new t((function(t,i){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=i})),this.resolve=de(e),this.reject=de(n)},br={f:function(t){return new gr(t)}},mr=function(t,e){if(m(t),p(e)&&e.constructor===t)return e;var n=br.f(t);return(0,n.resolve)(e),n.promise},wr=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},_r=Zi.set,yr=L("species"),xr="Promise",Cr=it.get,$r=it.set,Er=it.getterFor(xr),Sr=hi,Or=u.TypeError,kr=u.document,jr=u.process,Tr=Ot("fetch"),Ir=br.f,Pr=Ir,Ar="process"==at(jr),Rr=!!(kr&&kr.createEvent&&u.dispatchEvent),Nr=Qt(xr,(function(){if(!(G(Sr)!==String(Sr))){if(66===zn)return!0;if(!Ar&&"function"!=typeof PromiseRejectionEvent)return!0}if(zn>=51&&/native code/.test(Sr))return!1;var t=Sr.resolve(1),e=function(t){t((function(){}),(function(){}))};return(t.constructor={})[yr]=e,!(t.then((function(){}))instanceof e)})),Mr=Nr||!function(t,e){if(!e&&!Si)return!1;var n=!1;try{var i={};i[Ei]=function(){return{next:function(){return{done:n=!0}}}},t(i)}catch(t){}return n}((function(t){Sr.all(t).catch((function(){}))})),Fr=function(t){var e;return!(!p(t)||"function"!=typeof(e=t.then))&&e},Lr=function(t,e,n){if(!e.notified){e.notified=!0;var i=e.reactions;vr((function(){for(var r=e.value,o=1==e.state,a=0;i.length>a;){var s,c,l,u=i[a++],d=o?u.ok:u.fail,f=u.resolve,p=u.reject,h=u.domain;try{d?(o||(2===e.rejection&&Vr(t,e),e.rejection=1),!0===d?s=r:(h&&h.enter(),s=d(r),h&&(h.exit(),l=!0)),s===u.promise?p(Or("Promise-chain cycle")):(c=Fr(s))?c.call(s,f,p):f(s)):p(r)}catch(t){h&&!l&&h.exit(),p(t)}}e.reactions=[],e.notified=!1,n&&!e.rejection&&Dr(t,e)}))}},zr=function(t,e,n){var i,r;Rr?((i=kr.createEvent("Event")).promise=e,i.reason=n,i.initEvent(t,!1,!0),u.dispatchEvent(i)):i={promise:e,reason:n},(r=u["on"+t])?r(i):"unhandledrejection"===t&&function(t,e){var n=u.console;n&&n.error&&(1===arguments.length?n.error(t):n.error(t,e))}("Unhandled promise rejection",n)},Dr=function(t,e){_r.call(u,(function(){var n,i=e.value;if(Br(e)&&(n=wr((function(){Ar?jr.emit("unhandledRejection",i,t):zr("unhandledrejection",t,i)})),e.rejection=Ar||Br(e)?2:1,n.error))throw n.value}))},Br=function(t){return 1!==t.rejection&&!t.parent},Vr=function(t,e){_r.call(u,(function(){Ar?jr.emit("rejectionHandled",t):zr("rejectionhandled",t,e.value)}))},Wr=function(t,e,n,i){return function(r){t(e,n,r,i)}},Ur=function(t,e,n,i){e.done||(e.done=!0,i&&(e=i),e.value=n,e.state=2,Lr(t,e,!0))},Gr=function(t,e,n,i){if(!e.done){e.done=!0,i&&(e=i);try{if(t===n)throw Or("Promise can't be resolved itself");var r=Fr(n);r?vr((function(){var i={done:!1};try{r.call(n,Wr(Gr,t,i,e),Wr(Ur,t,i,e))}catch(n){Ur(t,i,n,e)}})):(e.value=n,e.state=1,Lr(t,e,!1))}catch(n){Ur(t,{done:!1},n,e)}}};Nr&&(Sr=function(t){!function(t,e,n){if(!(t instanceof e))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation")}(this,Sr,xr),de(t),cr.call(this);var e=Cr(this);try{t(Wr(Gr,this,e),Wr(Ur,this,e))}catch(t){Ur(this,e,t)}},(cr=function(t){$r(this,{type:xr,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=function(t,e,n){for(var i in e)rt(t,i,e[i],n);return t}(Sr.prototype,{then:function(t,e){var n=Er(this),i=Ir(Cn(this,Sr));return i.ok="function"!=typeof t||t,i.fail="function"==typeof e&&e,i.domain=Ar?jr.domain:void 0,n.parent=!0,n.reactions.push(i),0!=n.state&&Lr(this,n,!1),i.promise},catch:function(t){return this.then(void 0,t)}}),lr=function(){var t=new cr,e=Cr(t);this.promise=t,this.resolve=Wr(Gr,t,e),this.reject=Wr(Ur,t,e)},br.f=Ir=function(t){return t===Sr||t===ur?new lr(t):Pr(t)},"function"==typeof hi&&(dr=hi.prototype.then,rt(hi.prototype,"then",(function(t,e){var n=this;return new Sr((function(t,e){dr.call(n,t,e)})).then(t,e)}),{unsafe:!0}),"function"==typeof Tr&&te({global:!0,enumerable:!0,forced:!0},{fetch:function(t){return mr(Sr,Tr.apply(u,arguments))}}))),te({global:!0,wrap:!0,forced:Nr},{Promise:Sr}),pr=xr,hr=!1,(fr=Sr)&&!j(fr=hr?fr:fr.prototype,gi)&&vi(fr,gi,{configurable:!0,value:pr}),function(t){var e=Ot(t),n=y.f;f&&e&&!e[bi]&&n(e,bi,{configurable:!0,get:function(){return this}})}(xr),ur=Ot(xr),te({target:xr,stat:!0,forced:Nr},{reject:function(t){var e=Ir(this);return e.reject.call(void 0,t),e.promise}}),te({target:xr,stat:!0,forced:Nr},{resolve:function(t){return mr(this,t)}}),te({target:xr,stat:!0,forced:Mr},{all:function(t){var e=this,n=Ir(e),i=n.resolve,r=n.reject,o=wr((function(){var n=de(e.resolve),o=[],a=0,s=1;$i(t,(function(t){var c=a++,l=!1;o.push(void 0),s++,n.call(e,t).then((function(t){l||(l=!0,o[c]=t,--s||i(o))}),r)})),--s||i(o)}));return o.error&&r(o.value),n.promise},race:function(t){var e=this,n=Ir(e),i=n.reject,r=wr((function(){var r=de(e.resolve);$i(t,(function(t){r.call(e,t).then(n.resolve,i)}))}));return r.error&&i(r.value),n.promise}});var Xr={components:{},props:{visible:Boolean,mask:{default:!0,type:Boolean},maskClose:{default:!1,type:Boolean},preventEvent:{default:!0,type:Boolean},hideBodyScroll:{default:!0,type:Boolean},pageClass:String|Array,pageStyle:String|Array|Object},watch:{visible:function(t){var e=this;t?this.show().then(function(){a(this,e)}.bind(this)):this.hide().then(function(){a(this,e)}.bind(this))}},mounted:function(){var t=this;this.visible&&this.show().then(function(){a(this,t)}.bind(this))},beforeDestroy:function(){var t=this;this.visible&&this.hide().then(function(){a(this,t)}.bind(this))},methods:{show:function(){var t=this;return new Promise(function(e){var n=this;a(this,t),Jn(this.$el,this.mask,this.preventEvent,this.hideBodyScroll,function(){a(this,n),this.$emit("update:visible",!0),e()}.bind(this))}.bind(this))},hide:function(){var t=this;return new Promise(function(e){var n=this;a(this,t),Zn(this.$el,function(){a(this,n),this.$emit("update:visible",!1),e()}.bind(this))}.bind(this))},onClickMask:function(){var t=this;this.maskClose&&this.hide().then(function(e){a(this,t)}.bind(this))}}},qr=L("isConcatSpreadable"),Hr=zn>=51||!d((function(){var t=[];return t[qr]=!1,t.concat()[0]!==t})),Kr=Bn("concat"),Yr=function(t){if(!p(t))return!1;var e=t[qr];return void 0!==e?!!e:In(t)};function Jr(t,e,n,i,r,o,a,s,c,l){"boolean"!=typeof a&&(c=s,s=a,a=!1);var u,d="function"==typeof n?n.options:n;if(t&&t.render&&(d.render=t.render,d.staticRenderFns=t.staticRenderFns,d._compiled=!0,r&&(d.functional=!0)),i&&(d._scopeId=i),o?(u=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,c(t)),t&&t._registeredComponents&&t._registeredComponents.add(o)},d._ssrRegister=u):e&&(u=a?function(t){e.call(this,l(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,s(t))}),u)if(d.functional){var f=d.render;d.render=function(t,e){return u.call(e),f(t,e)}}else{var p=d.beforeCreate;d.beforeCreate=p?[].concat(p,u):[u]}return n}te({target:"Array",proto:!0,forced:!Hr||!Kr},{concat:function(t){var e,n,i,r,o,a=fe(this),s=An(a,0),c=0;for(e=-1,i=arguments.length;e<i;e++)if(Yr(o=-1===e?a:arguments[e])){if(c+(r=Pt(o.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n<r;n++,c++)n in o&&Rn(s,c,o[n])}else{if(c>=9007199254740991)throw TypeError("Maximum allowed index exceeded");Rn(s,c++,o)}return s.length=c,s}});var Qr=Xr,Zr=function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"bp-widget",on:{click:this.onClickMask}},[e("div",{staticClass:"bp-widget__content",class:this.pageClass,style:this.pageStyle},[this._t("default")],2)])};Zr._withStripped=!0;var to=Jr({render:Zr,staticRenderFns:[]},void 0,Qr,void 0,!1,void 0,!1,void 0,void 0,void 0),eo={components:{bpIcon:t.VueObject.bpIcon,widget:to},props:{visible:Boolean,mask:{default:!0,type:Boolean},maskClose:Boolean,pageClass:String|Array,pageStyle:String|Array|Object,showClose:{default:!0,type:Boolean},title:String},data:function(){return{visibleReal:!1,footClass:null}},watch:{visible:function(t){this.visibleReal=t},visibleReal:function(t){this.$emit("update:visible",t)}},beforeMount:function(){this.visibleReal=this.visible;var t=this.$slots.foot;if(t&&t[0]&&t[0].children){for(var e=0,n=0;n<t[0].children.length;n++)t[0].children[n].tag&&e++;1==e?this.footClass="bp-dialog__footOneButton":2==e?this.footClass="bp-dialog__footTwoButton":3==e&&(this.footClass="bp-dialog__footThreeButton")}},beforeDestroy:function(){},mounted:function(){},methods:{show:function(){return this.$refs.widget.show()},hide:function(){return this.$refs.widget.hide()}}},no=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("widget",{ref:"widget",staticClass:"bp-dialog",attrs:{visible:t.visibleReal,maskClose:t.maskClose,mask:t.mask,pageClass:t.pageClass,pageStyle:t.pageStyle,preventEvent:!0},on:{"update:visible":function(e){t.visibleReal=e}}},[t.$slots.title?n("div",{staticClass:"bp-dialog__title bp-ellipsis",on:{click:function(t){t.stopPropagation()}}},[t._t("title")],2):t.title?n("div",{staticClass:"bp-dialog__title bp-ellipsis",on:{click:function(t){t.stopPropagation()}}},[t._v(t._s(t.title))]):t._e(),t._v(" "),n("div",{staticClass:"bp-dialog__main",on:{click:function(t){t.stopPropagation()}}},[t._t("default")],2),t._v(" "),t.$slots.foot?n("div",{staticClass:"bp-dialog__foot",class:t.footClass,on:{click:function(t){t.stopPropagation()}}},[t._t("foot")],2):t._e(),t._v(" "),t.showClose?n("bp-icon",{staticClass:"bp-dialog__close",attrs:{name:"bp-dialog_close"},on:{click:function(e){e.stopPropagation(),t.hide().then((function(t){}))}}}):t._e()],1)};no._withStripped=!0;var io=Jr({render:no,staticRenderFns:[]},void 0,eo,void 0,!1,void 0,!1,void 0,void 0,void 0),ro={components:{bpDialog:io},data:function(){return{title:"",content:"",okText:"确认"}}},oo=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("bp-dialog",{attrs:{title:t.title,showClose:!1}},[t._v("\n "+t._s(t.content)+"\n "),n("div",{attrs:{slot:"foot"},slot:"foot"},[n("button",{on:{click:function(e){return t.$emit("confirm")}}},[t._v(t._s(t.okText))])])])};oo._withStripped=!0;var ao=Jr({render:oo,staticRenderFns:[]},void 0,ro,void 0,!1,void 0,!1,void 0,void 0,void 0),so={components:{bpDialog:io},data:function(){return{title:"",content:"",okText:"确认",cancelText:"取消"}}},co=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("bp-dialog",{attrs:{title:t.title,showClose:!1}},[t._v("\n "+t._s(t.content)+"\n "),n("div",{attrs:{slot:"foot"},slot:"foot"},[n("button",{staticStyle:{"font-weight":"500"},on:{click:function(e){return t.$emit("cancel")}}},[t._v(t._s(t.cancelText))]),t._v(" "),n("button",{on:{click:function(e){return t.$emit("confirm")}}},[t._v(t._s(t.okText))])])])};co._withStripped=!0;var lo=Jr({render:co,staticRenderFns:[]},void 0,so,void 0,!1,void 0,!1,void 0,void 0,void 0),uo={components:{bpIcon:t.VueObject.bpIcon,widget:to},data:function(){return{content:""}}},fo=function(){var t=this.$createElement,e=this._self._c||t;return e("widget",{ref:"widget",staticClass:"bp-loading",attrs:{mask:!1,preventEvent:!0}},[e("div",{staticClass:"bp-loading__main"},[e("bp-icon",{attrs:{name:"loading"}})],1),this._v(" "),e("div",{staticClass:"bp-loading__text"},[this._v("\n "+this._s(this.content)+"\n ")])])};fo._withStripped=!0;var po=Jr({render:fo,staticRenderFns:[]},void 0,uo,void 0,!1,void 0,!1,void 0,void 0,void 0),ho={components:{bpIcon:t.VueObject.bpIcon,widget:to},data:function(){return{content:"",icon:null}}},vo=function(){var t=this.$createElement,e=this._self._c||t;return e("widget",{ref:"widget",staticClass:"bp-toast",attrs:{mask:!1,preventEvent:!1,hideBodyScroll:!1}},[e("div",[this.icon?e("div",{staticClass:"bp-toast__main"},[e("bp-icon",{attrs:{name:this.icon}})],1):this._e(),this._v(" "),e("div",{staticClass:"bp-toast__text"},[this._v("\n "+this._s(this.content)+"\n ")])])])};vo._withStripped=!0;var go=Jr({render:vo,staticRenderFns:[]},void 0,ho,void 0,!1,void 0,!1,void 0,void 0,void 0);function bo(t,e){var n=this;Qn(),setTimeout(function(){a(this,n);var t=$(".bp-navbarView_page").length,e=$(".bp-widget[data-mark='".concat("page"+t,"']"));if(0==e.length)$("body").removeClass("bp-widget__fixscroll"),$("html").css("padding-right","");else{for(var i=0;i<e.length;i++){var r=$(e[i]);if(r.hasClass("bp-widget__mask")&&r.hasClass("bp-widget__visible"))return void Yn(r)}$("body").removeClass("bp-widget__fixscroll"),$("html").css("padding-right","")}}.bind(this),800)}function mo(){t.icons.registerAliasIcon("bp-dialog_close","cancel"),ti({alert:ao,confirm:lo,loading:po,toast:go}),t.router.off("routeChanged",bo).on("routeChanged",bo)}return mo(),{init:mo,VuePlugin:function(){return{install:pi}},hook:qn,registerDialogComponents:ti,apiWidget:fi,bpDialog:io,bpWidget:to}})); | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("@bpui/libs"),require("febs-browser"),require("vue")):"function"==typeof define&&define.amd?define(["@bpui/libs","febs-browser","vue"],e):(t=t||self).bpDialog=e(t.bpLibs,t.febs,t.Vue)}(this,(function(t,e,n){"use strict";function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){i(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function a(t,e){if(t!==e)throw new TypeError("Cannot instantiate an arrow function")}t=t&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t,n=n&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n;var s="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function c(t,e){return t(e={exports:{}},e.exports),e.exports}var l=function(t){return t&&t.Math==Math&&t},u=l("object"==typeof globalThis&&globalThis)||l("object"==typeof window&&window)||l("object"==typeof self&&self)||l("object"==typeof s&&s)||Function("return this")(),d=function(t){try{return!!t()}catch(t){return!0}},f=!d((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),p=function(t){return"object"==typeof t?null!==t:"function"==typeof t},h=u.document,v=p(h)&&p(h.createElement),g=function(t){return v?h.createElement(t):{}},b=!f&&!d((function(){return 7!=Object.defineProperty(g("div"),"a",{get:function(){return 7}}).a})),m=function(t){if(!p(t))throw TypeError(String(t)+" is not an object");return t},w=function(t,e){if(!p(t))return t;var n,i;if(e&&"function"==typeof(n=t.toString)&&!p(i=n.call(t)))return i;if("function"==typeof(n=t.valueOf)&&!p(i=n.call(t)))return i;if(!e&&"function"==typeof(n=t.toString)&&!p(i=n.call(t)))return i;throw TypeError("Can't convert object to primitive value")},_=Object.defineProperty,y={f:f?_:function(t,e,n){if(m(t),e=w(e,!0),m(n),b)try{return _(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},C=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},x=f?function(t,e,n){return y.f(t,e,C(1,n))}:function(t,e,n){return t[e]=n,t},E=function(t,e){try{x(u,t,e)}catch(n){u[t]=e}return e},S=u["__core-js_shared__"]||E("__core-js_shared__",{}),O=c((function(t){(t.exports=function(t,e){return S[t]||(S[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.5",mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),k={}.hasOwnProperty,j=function(t,e){return k.call(t,e)},T=0,I=Math.random(),P=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++T+I).toString(36)},A=!!Object.getOwnPropertySymbols&&!d((function(){return!String(Symbol())})),R=A&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,N=O("wks"),M=u.Symbol,L=R?M:M&&M.withoutSetter||P,D=function(t){return j(N,t)||(A&&j(M,t)?N[t]=M[t]:N[t]=L("Symbol."+t)),N[t]},F={};F[D("toStringTag")]="z";var B="[object z]"===String(F),V=Function.toString;"function"!=typeof S.inspectSource&&(S.inspectSource=function(t){return V.call(t)});var z,W,U,G=S.inspectSource,X=u.WeakMap,q="function"==typeof X&&/native code/.test(G(X)),H=O("keys"),K=function(t){return H[t]||(H[t]=P(t))},Y={},J=u.WeakMap;if(q){var Q=new J,Z=Q.get,tt=Q.has,et=Q.set;z=function(t,e){return et.call(Q,t,e),e},W=function(t){return Z.call(Q,t)||{}},U=function(t){return tt.call(Q,t)}}else{var nt=K("state");Y[nt]=!0,z=function(t,e){return x(t,nt,e),e},W=function(t){return j(t,nt)?t[nt]:{}},U=function(t){return j(t,nt)}}var it={set:z,get:W,has:U,enforce:function(t){return U(t)?W(t):z(t,{})},getterFor:function(t){return function(e){var n;if(!p(e)||(n=W(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}},rt=c((function(t){var e=it.get,n=it.enforce,i=String(String).split("String");(t.exports=function(t,e,r,o){var a=!!o&&!!o.unsafe,s=!!o&&!!o.enumerable,c=!!o&&!!o.noTargetGet;"function"==typeof r&&("string"!=typeof e||j(r,"name")||x(r,"name",e),n(r).source=i.join("string"==typeof e?e:"")),t!==u?(a?!c&&t[e]&&(s=!0):delete t[e],s?t[e]=r:x(t,e,r)):s?t[e]=r:E(e,r)})(Function.prototype,"toString",(function(){return"function"==typeof this&&e(this).source||G(this)}))})),ot={}.toString,at=function(t){return ot.call(t).slice(8,-1)},st=D("toStringTag"),ct="Arguments"==at(function(){return arguments}()),lt=B?at:function(t){var e,n,i;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),st))?n:ct?at(e):"Object"==(i=at(e))&&"function"==typeof e.callee?"Arguments":i},ut=B?{}.toString:function(){return"[object "+lt(this)+"]"};B||rt(Object.prototype,"toString",ut,{unsafe:!0});var dt=function(){var t=m(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},ft=RegExp.prototype,pt=ft.toString,ht=d((function(){return"/a/b"!=pt.call({source:"a",flags:"b"})})),vt="toString"!=pt.name;(ht||vt)&&rt(RegExp.prototype,"toString",(function(){var t=m(this),e=String(t.source),n=t.flags;return"/"+e+"/"+String(void 0===n&&t instanceof RegExp&&!("flags"in ft)?dt.call(t):n)}),{unsafe:!0});var gt={}.propertyIsEnumerable,bt=Object.getOwnPropertyDescriptor,mt={f:bt&&!gt.call({1:2},1)?function(t){var e=bt(this,t);return!!e&&e.enumerable}:gt},wt="".split,_t=d((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==at(t)?wt.call(t,""):Object(t)}:Object,yt=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},Ct=function(t){return _t(yt(t))},xt=Object.getOwnPropertyDescriptor,Et={f:f?xt:function(t,e){if(t=Ct(t),e=w(e,!0),b)try{return xt(t,e)}catch(t){}if(j(t,e))return C(!mt.f.call(t,e),t[e])}},$t=u,St=function(t){return"function"==typeof t?t:void 0},Ot=function(t,e){return arguments.length<2?St($t[t])||St(u[t]):$t[t]&&$t[t][e]||u[t]&&u[t][e]},kt=Math.ceil,jt=Math.floor,Tt=function(t){return isNaN(t=+t)?0:(t>0?jt:kt)(t)},It=Math.min,Pt=function(t){return t>0?It(Tt(t),9007199254740991):0},At=Math.max,Rt=Math.min,Nt=function(t,e){var n=Tt(t);return n<0?At(n+e,0):Rt(n,e)},Mt=function(t){return function(e,n,i){var r,o=Ct(e),a=Pt(o.length),s=Nt(i,a);if(t&&n!=n){for(;a>s;)if((r=o[s++])!=r)return!0}else for(;a>s;s++)if((t||s in o)&&o[s]===n)return t||s||0;return!t&&-1}},Lt={includes:Mt(!0),indexOf:Mt(!1)},Dt=Lt.indexOf,Ft=function(t,e){var n,i=Ct(t),r=0,o=[];for(n in i)!j(Y,n)&&j(i,n)&&o.push(n);for(;e.length>r;)j(i,n=e[r++])&&(~Dt(o,n)||o.push(n));return o},Bt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Vt=Bt.concat("length","prototype"),zt={f:Object.getOwnPropertyNames||function(t){return Ft(t,Vt)}},Wt={f:Object.getOwnPropertySymbols},Ut=Ot("Reflect","ownKeys")||function(t){var e=zt.f(m(t)),n=Wt.f;return n?e.concat(n(t)):e},Gt=function(t,e){for(var n=Ut(e),i=y.f,r=Et.f,o=0;o<n.length;o++){var a=n[o];j(t,a)||i(t,a,r(e,a))}},Xt=/#|\.prototype\./,qt=function(t,e){var n=Kt[Ht(t)];return n==Jt||n!=Yt&&("function"==typeof e?d(e):!!e)},Ht=qt.normalize=function(t){return String(t).replace(Xt,".").toLowerCase()},Kt=qt.data={},Yt=qt.NATIVE="N",Jt=qt.POLYFILL="P",Qt=qt,Zt=Et.f,te=function(t,e){var n,i,r,o,a,s=t.target,c=t.global,l=t.stat;if(n=c?u:l?u[s]||E(s,{}):(u[s]||{}).prototype)for(i in e){if(o=e[i],r=t.noTargetGet?(a=Zt(n,i))&&a.value:n[i],!Qt(c?i:s+(l?".":"#")+i,t.forced)&&void 0!==r){if(typeof o==typeof r)continue;Gt(o,r)}(t.sham||r&&r.sham)&&x(o,"sham",!0),rt(n,i,o,t)}},ee=function(t,e){var n=[][t];return!!n&&d((function(){n.call(null,e||function(){throw 1},1)}))},ne=Object.defineProperty,ie={},re=function(t){throw t},oe=function(t,e){if(j(ie,t))return ie[t];e||(e={});var n=[][t],i=!!j(e,"ACCESSORS")&&e.ACCESSORS,r=j(e,0)?e[0]:re,o=j(e,1)?e[1]:void 0;return ie[t]=!!n&&!d((function(){if(i&&!f)return!0;var t={length:-1};i?ne(t,1,{enumerable:!0,get:re}):t[1]=1,n.call(t,r,o)}))},ae=Lt.indexOf,se=[].indexOf,ce=!!se&&1/[1].indexOf(1,-0)<0,le=ee("indexOf"),ue=oe("indexOf",{ACCESSORS:!0,1:0});te({target:"Array",proto:!0,forced:ce||!le||!ue},{indexOf:function(t){return ce?se.apply(this,arguments)||0:ae(this,t,arguments.length>1?arguments[1]:void 0)}});var de=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t},fe=function(t){return Object(yt(t))},pe=[],he=pe.sort,ve=d((function(){pe.sort(void 0)})),ge=d((function(){pe.sort(null)})),be=ee("sort");te({target:"Array",proto:!0,forced:ve||!ge||!be},{sort:function(t){return void 0===t?he.call(fe(this)):he.call(fe(this),de(t))}});var me,we=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),e=n instanceof Array}catch(t){}return function(n,i){return m(n),function(t){if(!p(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype")}(i),e?t.call(n,i):n.__proto__=i,n}}():void 0),_e=function(t,e,n){var i,r;return we&&"function"==typeof(i=e.constructor)&&i!==n&&p(r=i.prototype)&&r!==n.prototype&&we(t,r),t},ye=Object.keys||function(t){return Ft(t,Bt)},Ce=f?Object.defineProperties:function(t,e){m(t);for(var n,i=ye(e),r=i.length,o=0;r>o;)y.f(t,n=i[o++],e[n]);return t},xe=Ot("document","documentElement"),Ee=K("IE_PROTO"),$e=function(){},Se=function(t){return"<script>"+t+"<\/script>"},Oe=function(){try{me=document.domain&&new ActiveXObject("htmlfile")}catch(t){}var t,e;Oe=me?function(t){t.write(Se("")),t.close();var e=t.parentWindow.Object;return t=null,e}(me):((e=g("iframe")).style.display="none",xe.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(Se("document.F=Object")),t.close(),t.F);for(var n=Bt.length;n--;)delete Oe.prototype[Bt[n]];return Oe()};Y[Ee]=!0;var ke=Object.create||function(t,e){var n;return null!==t?($e.prototype=m(t),n=new $e,$e.prototype=null,n[Ee]=t):n=Oe(),void 0===e?n:Ce(n,e)},je="\t\n\v\f\r \u2028\u2029\ufeff",Te="["+je+"]",Ie=RegExp("^"+Te+Te+"*"),Pe=RegExp(Te+Te+"*$"),Ae=function(t){return function(e){var n=String(yt(e));return 1&t&&(n=n.replace(Ie,"")),2&t&&(n=n.replace(Pe,"")),n}},Re={start:Ae(1),end:Ae(2),trim:Ae(3)},Ne=zt.f,Me=Et.f,Le=y.f,De=Re.trim,Fe=u.Number,Be=Fe.prototype,Ve="Number"==at(ke(Be)),ze=function(t){var e,n,i,r,o,a,s,c,l=w(t,!1);if("string"==typeof l&&l.length>2)if(43===(e=(l=De(l)).charCodeAt(0))||45===e){if(88===(n=l.charCodeAt(2))||120===n)return NaN}else if(48===e){switch(l.charCodeAt(1)){case 66:case 98:i=2,r=49;break;case 79:case 111:i=8,r=55;break;default:return+l}for(a=(o=l.slice(2)).length,s=0;s<a;s++)if((c=o.charCodeAt(s))<48||c>r)return NaN;return parseInt(o,i)}return+l};if(Qt("Number",!Fe(" 0o1")||!Fe("0b1")||Fe("+0x1"))){for(var We,Ue=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof Ue&&(Ve?d((function(){Be.valueOf.call(n)})):"Number"!=at(n))?_e(new Fe(ze(e)),n,Ue):ze(e)},Ge=f?Ne(Fe):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),Xe=0;Ge.length>Xe;Xe++)j(Fe,We=Ge[Xe])&&!j(Ue,We)&&Le(Ue,We,Me(Fe,We));Ue.prototype=Be,Be.constructor=Ue,rt(u,"Number",Ue)}var qe=u.Promise,He=y.f,Ke=D("toStringTag"),Ye=D("species"),Je={},Qe=D("iterator"),Ze=Array.prototype,tn=function(t,e,n){if(de(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(n){return t.call(e,n)};case 2:return function(n,i){return t.call(e,n,i)};case 3:return function(n,i,r){return t.call(e,n,i,r)}}return function(){return t.apply(e,arguments)}},en=D("iterator"),nn=function(t,e,n,i){try{return i?e(m(n)[0],n[1]):e(n)}catch(e){var r=t.return;throw void 0!==r&&m(r.call(t)),e}},rn=c((function(t){var e=function(t,e){this.stopped=t,this.result=e};(t.exports=function(t,n,i,r,o){var a,s,c,l,u,d,f,p,h=tn(n,i,r?2:1);if(o)a=t;else{if("function"!=typeof(s=function(t){if(null!=t)return t[en]||t["@@iterator"]||Je[lt(t)]}(t)))throw TypeError("Target is not iterable");if(void 0!==(p=s)&&(Je.Array===p||Ze[Qe]===p)){for(c=0,l=Pt(t.length);l>c;c++)if((u=r?h(m(f=t[c])[0],f[1]):h(t[c]))&&u instanceof e)return u;return new e(!1)}a=s.call(t)}for(d=a.next;!(f=d.call(a)).done;)if("object"==typeof(u=nn(a,h,f.value,r))&&u&&u instanceof e)return u;return new e(!1)}).stop=function(t){return new e(!0,t)}})),on=D("iterator"),an=!1;try{var sn=0,cn={next:function(){return{done:!!sn++}},return:function(){an=!0}};cn[on]=function(){return this},Array.from(cn,(function(){throw 2}))}catch(t){}var ln,un,dn,fn=D("species"),pn=function(t,e){var n,i=m(t).constructor;return void 0===i||null==(n=m(i)[fn])?e:de(n)},hn=Ot("navigator","userAgent")||"",vn=/(iphone|ipod|ipad).*applewebkit/i.test(hn),gn=u.location,bn=u.setImmediate,mn=u.clearImmediate,wn=u.process,_n=u.MessageChannel,yn=u.Dispatch,Cn=0,xn={},En=function(t){if(xn.hasOwnProperty(t)){var e=xn[t];delete xn[t],e()}},$n=function(t){return function(){En(t)}},Sn=function(t){En(t.data)},On=function(t){u.postMessage(t+"",gn.protocol+"//"+gn.host)};bn&&mn||(bn=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return xn[++Cn]=function(){("function"==typeof t?t:Function(t)).apply(void 0,e)},ln(Cn),Cn},mn=function(t){delete xn[t]},"process"==at(wn)?ln=function(t){wn.nextTick($n(t))}:yn&&yn.now?ln=function(t){yn.now($n(t))}:_n&&!vn?(dn=(un=new _n).port2,un.port1.onmessage=Sn,ln=tn(dn.postMessage,dn,1)):!u.addEventListener||"function"!=typeof postMessage||u.importScripts||d(On)||"file:"===gn.protocol?ln="onreadystatechange"in g("script")?function(t){xe.appendChild(g("script")).onreadystatechange=function(){xe.removeChild(this),En(t)}}:function(t){setTimeout($n(t),0)}:(ln=On,u.addEventListener("message",Sn,!1)));var kn,jn,Tn,In,Pn,An,Rn,Nn,Mn={set:bn,clear:mn},Ln=Et.f,Dn=Mn.set,Fn=u.MutationObserver||u.WebKitMutationObserver,Bn=u.process,Vn=u.Promise,zn="process"==at(Bn),Wn=Ln(u,"queueMicrotask"),Un=Wn&&Wn.value;Un||(kn=function(){var t,e;for(zn&&(t=Bn.domain)&&t.exit();jn;){e=jn.fn,jn=jn.next;try{e()}catch(t){throw jn?In():Tn=void 0,t}}Tn=void 0,t&&t.enter()},zn?In=function(){Bn.nextTick(kn)}:Fn&&!vn?(Pn=!0,An=document.createTextNode(""),new Fn(kn).observe(An,{characterData:!0}),In=function(){An.data=Pn=!Pn}):Vn&&Vn.resolve?(Rn=Vn.resolve(void 0),Nn=Rn.then,In=function(){Nn.call(Rn,kn)}):In=function(){Dn.call(u,kn)});var Gn,Xn,qn=Un||function(t){var e={fn:t,next:void 0};Tn&&(Tn.next=e),jn||(jn=e,In()),Tn=e},Hn=function(t){var e,n;this.promise=new t((function(t,i){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=i})),this.resolve=de(e),this.reject=de(n)},Kn={f:function(t){return new Hn(t)}},Yn=function(t,e){if(m(t),p(e)&&e.constructor===t)return e;var n=Kn.f(t);return(0,n.resolve)(e),n.promise},Jn=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},Qn=u.process,Zn=Qn&&Qn.versions,ti=Zn&&Zn.v8;ti?Xn=(Gn=ti.split("."))[0]+Gn[1]:hn&&(!(Gn=hn.match(/Edge\/(\d+)/))||Gn[1]>=74)&&(Gn=hn.match(/Chrome\/(\d+)/))&&(Xn=Gn[1]);var ei,ni,ii,ri,oi,ai,si,ci=Xn&&+Xn,li=Mn.set,ui=D("species"),di="Promise",fi=it.get,pi=it.set,hi=it.getterFor(di),vi=qe,gi=u.TypeError,bi=u.document,mi=u.process,wi=Ot("fetch"),_i=Kn.f,yi=_i,Ci="process"==at(mi),xi=!!(bi&&bi.createEvent&&u.dispatchEvent),Ei=Qt(di,(function(){if(!(G(vi)!==String(vi))){if(66===ci)return!0;if(!Ci&&"function"!=typeof PromiseRejectionEvent)return!0}if(ci>=51&&/native code/.test(vi))return!1;var t=vi.resolve(1),e=function(t){t((function(){}),(function(){}))};return(t.constructor={})[ui]=e,!(t.then((function(){}))instanceof e)})),$i=Ei||!function(t,e){if(!e&&!an)return!1;var n=!1;try{var i={};i[on]=function(){return{next:function(){return{done:n=!0}}}},t(i)}catch(t){}return n}((function(t){vi.all(t).catch((function(){}))})),Si=function(t){var e;return!(!p(t)||"function"!=typeof(e=t.then))&&e},Oi=function(t,e,n){if(!e.notified){e.notified=!0;var i=e.reactions;qn((function(){for(var r=e.value,o=1==e.state,a=0;i.length>a;){var s,c,l,u=i[a++],d=o?u.ok:u.fail,f=u.resolve,p=u.reject,h=u.domain;try{d?(o||(2===e.rejection&&Ii(t,e),e.rejection=1),!0===d?s=r:(h&&h.enter(),s=d(r),h&&(h.exit(),l=!0)),s===u.promise?p(gi("Promise-chain cycle")):(c=Si(s))?c.call(s,f,p):f(s)):p(r)}catch(t){h&&!l&&h.exit(),p(t)}}e.reactions=[],e.notified=!1,n&&!e.rejection&&ji(t,e)}))}},ki=function(t,e,n){var i,r;xi?((i=bi.createEvent("Event")).promise=e,i.reason=n,i.initEvent(t,!1,!0),u.dispatchEvent(i)):i={promise:e,reason:n},(r=u["on"+t])?r(i):"unhandledrejection"===t&&function(t,e){var n=u.console;n&&n.error&&(1===arguments.length?n.error(t):n.error(t,e))}("Unhandled promise rejection",n)},ji=function(t,e){li.call(u,(function(){var n,i=e.value;if(Ti(e)&&(n=Jn((function(){Ci?mi.emit("unhandledRejection",i,t):ki("unhandledrejection",t,i)})),e.rejection=Ci||Ti(e)?2:1,n.error))throw n.value}))},Ti=function(t){return 1!==t.rejection&&!t.parent},Ii=function(t,e){li.call(u,(function(){Ci?mi.emit("rejectionHandled",t):ki("rejectionhandled",t,e.value)}))},Pi=function(t,e,n,i){return function(r){t(e,n,r,i)}},Ai=function(t,e,n,i){e.done||(e.done=!0,i&&(e=i),e.value=n,e.state=2,Oi(t,e,!0))},Ri=function(t,e,n,i){if(!e.done){e.done=!0,i&&(e=i);try{if(t===n)throw gi("Promise can't be resolved itself");var r=Si(n);r?qn((function(){var i={done:!1};try{r.call(n,Pi(Ri,t,i,e),Pi(Ai,t,i,e))}catch(n){Ai(t,i,n,e)}})):(e.value=n,e.state=1,Oi(t,e,!1))}catch(n){Ai(t,{done:!1},n,e)}}};function Ni(t,e){return RegExp(t,e)}Ei&&(vi=function(t){!function(t,e,n){if(!(t instanceof e))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation")}(this,vi,di),de(t),ei.call(this);var e=fi(this);try{t(Pi(Ri,this,e),Pi(Ai,this,e))}catch(t){Ai(this,e,t)}},(ei=function(t){pi(this,{type:di,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=function(t,e,n){for(var i in e)rt(t,i,e[i],n);return t}(vi.prototype,{then:function(t,e){var n=hi(this),i=_i(pn(this,vi));return i.ok="function"!=typeof t||t,i.fail="function"==typeof e&&e,i.domain=Ci?mi.domain:void 0,n.parent=!0,n.reactions.push(i),0!=n.state&&Oi(this,n,!1),i.promise},catch:function(t){return this.then(void 0,t)}}),ni=function(){var t=new ei,e=fi(t);this.promise=t,this.resolve=Pi(Ri,t,e),this.reject=Pi(Ai,t,e)},Kn.f=_i=function(t){return t===vi||t===ii?new ni(t):yi(t)},"function"==typeof qe&&(ri=qe.prototype.then,rt(qe.prototype,"then",(function(t,e){var n=this;return new vi((function(t,e){ri.call(n,t,e)})).then(t,e)}),{unsafe:!0}),"function"==typeof wi&&te({global:!0,enumerable:!0,forced:!0},{fetch:function(t){return Yn(vi,wi.apply(u,arguments))}}))),te({global:!0,wrap:!0,forced:Ei},{Promise:vi}),ai=di,si=!1,(oi=vi)&&!j(oi=si?oi:oi.prototype,Ke)&&He(oi,Ke,{configurable:!0,value:ai}),function(t){var e=Ot(t),n=y.f;f&&e&&!e[Ye]&&n(e,Ye,{configurable:!0,get:function(){return this}})}(di),ii=Ot(di),te({target:di,stat:!0,forced:Ei},{reject:function(t){var e=_i(this);return e.reject.call(void 0,t),e.promise}}),te({target:di,stat:!0,forced:Ei},{resolve:function(t){return Yn(this,t)}}),te({target:di,stat:!0,forced:$i},{all:function(t){var e=this,n=_i(e),i=n.resolve,r=n.reject,o=Jn((function(){var n=de(e.resolve),o=[],a=0,s=1;rn(t,(function(t){var c=a++,l=!1;o.push(void 0),s++,n.call(e,t).then((function(t){l||(l=!0,o[c]=t,--s||i(o))}),r)})),--s||i(o)}));return o.error&&r(o.value),n.promise},race:function(t){var e=this,n=_i(e),i=n.reject,r=Jn((function(){var r=de(e.resolve);rn(t,(function(t){r.call(e,t).then(n.resolve,i)}))}));return r.error&&i(r.value),n.promise}});var Mi,Li,Di={UNSUPPORTED_Y:d((function(){var t=Ni("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),BROKEN_CARET:d((function(){var t=Ni("^r","gy");return t.lastIndex=2,null!=t.exec("str")}))},Fi=RegExp.prototype.exec,Bi=String.prototype.replace,Vi=Fi,zi=(Mi=/a/,Li=/b*/g,Fi.call(Mi,"a"),Fi.call(Li,"a"),0!==Mi.lastIndex||0!==Li.lastIndex),Wi=Di.UNSUPPORTED_Y||Di.BROKEN_CARET,Ui=void 0!==/()??/.exec("")[1];(zi||Ui||Wi)&&(Vi=function(t){var e,n,i,r,o=this,a=Wi&&o.sticky,s=dt.call(o),c=o.source,l=0,u=t;return a&&(-1===(s=s.replace("y","")).indexOf("g")&&(s+="g"),u=String(t).slice(o.lastIndex),o.lastIndex>0&&(!o.multiline||o.multiline&&"\n"!==t[o.lastIndex-1])&&(c="(?: "+c+")",u=" "+u,l++),n=new RegExp("^(?:"+c+")",s)),Ui&&(n=new RegExp("^"+c+"$(?!\\s)",s)),zi&&(e=o.lastIndex),i=Fi.call(a?n:o,u),a?i?(i.input=i.input.slice(l),i[0]=i[0].slice(l),i.index=o.lastIndex,o.lastIndex+=i[0].length):o.lastIndex=0:zi&&i&&(o.lastIndex=o.global?i.index+i[0].length:e),Ui&&i&&i.length>1&&Bi.call(i[0],n,(function(){for(r=1;r<arguments.length-2;r++)void 0===arguments[r]&&(i[r]=void 0)})),i});var Gi=Vi;te({target:"RegExp",proto:!0,forced:/./.exec!==Gi},{exec:Gi});var Xi=D("species"),qi=!d((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),Hi="$0"==="a".replace(/./,"$0"),Ki=D("replace"),Yi=!!/./[Ki]&&""===/./[Ki]("a","$0"),Ji=!d((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),Qi=function(t,e,n,i){var r=D(t),o=!d((function(){var e={};return e[r]=function(){return 7},7!=""[t](e)})),a=o&&!d((function(){var e=!1,n=/a/;return"split"===t&&((n={}).constructor={},n.constructor[Xi]=function(){return n},n.flags="",n[r]=/./[r]),n.exec=function(){return e=!0,null},n[r](""),!e}));if(!o||!a||"replace"===t&&(!qi||!Hi||Yi)||"split"===t&&!Ji){var s=/./[r],c=n(r,""[t],(function(t,e,n,i,r){return e.exec===Gi?o&&!r?{done:!0,value:s.call(e,n,i)}:{done:!0,value:t.call(n,e,i)}:{done:!1}}),{REPLACE_KEEPS_$0:Hi,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:Yi}),l=c[0],u=c[1];rt(String.prototype,t,l),rt(RegExp.prototype,r,2==e?function(t,e){return u.call(t,this,e)}:function(t){return u.call(t,this)})}i&&x(RegExp.prototype[r],"sham",!0)},Zi=function(t){return function(e,n){var i,r,o=String(yt(e)),a=Tt(n),s=o.length;return a<0||a>=s?t?"":void 0:(i=o.charCodeAt(a))<55296||i>56319||a+1===s||(r=o.charCodeAt(a+1))<56320||r>57343?t?o.charAt(a):i:t?o.slice(a,a+2):r-56320+(i-55296<<10)+65536}},tr={codeAt:Zi(!1),charAt:Zi(!0)}.charAt,er=function(t,e,n){return e+(n?tr(t,e).length:1)},nr=function(t,e){var n=t.exec;if("function"==typeof n){var i=n.call(t,e);if("object"!=typeof i)throw TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==at(t))throw TypeError("RegExp#exec called on incompatible receiver");return Gi.call(t,e)},ir=Math.max,rr=Math.min,or=Math.floor,ar=/\$([$&'`]|\d\d?|<[^>]*>)/g,sr=/\$([$&'`]|\d\d?)/g,cr=function(t){return void 0===t?t:String(t)};Qi("replace",2,(function(t,e,n,i){var r=i.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,o=i.REPLACE_KEEPS_$0,a=r?"$":"$0";return[function(n,i){var r=yt(this),o=null==n?void 0:n[t];return void 0!==o?o.call(n,r,i):e.call(String(r),n,i)},function(t,i){if(!r&&o||"string"==typeof i&&-1===i.indexOf(a)){var c=n(e,t,this,i);if(c.done)return c.value}var l=m(t),u=String(this),d="function"==typeof i;d||(i=String(i));var f=l.global;if(f){var p=l.unicode;l.lastIndex=0}for(var h=[];;){var v=nr(l,u);if(null===v)break;if(h.push(v),!f)break;""===String(v[0])&&(l.lastIndex=er(u,Pt(l.lastIndex),p))}for(var g="",b=0,w=0;w<h.length;w++){v=h[w];for(var _=String(v[0]),y=ir(rr(Tt(v.index),u.length),0),C=[],x=1;x<v.length;x++)C.push(cr(v[x]));var E=v.groups;if(d){var $=[_].concat(C,y,u);void 0!==E&&$.push(E);var S=String(i.apply(void 0,$))}else S=s(_,u,y,C,E,i);y>=b&&(g+=u.slice(b,y)+S,b=y+_.length)}return g+u.slice(b)}];function s(t,n,i,r,o,a){var s=i+t.length,c=r.length,l=sr;return void 0!==o&&(o=fe(o),l=ar),e.call(a,l,(function(e,a){var l;switch(a.charAt(0)){case"$":return"$";case"&":return t;case"`":return n.slice(0,i);case"'":return n.slice(s);case"<":l=o[a.slice(1,-1)];break;default:var u=+a;if(0===u)return e;if(u>c){var d=or(u/10);return 0===d?e:d<=c?void 0===r[d-1]?a.charAt(1):r[d-1]+a.charAt(1):e}l=r[u-1]}return void 0===l?"":l}))}}));var lr=D("match"),ur=[].push,dr=Math.min,fr=!d((function(){return!RegExp(4294967295,"y")}));Qi("split",2,(function(t,e,n){var i;return i="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,n){var i=String(yt(this)),r=void 0===n?4294967295:n>>>0;if(0===r)return[];if(void 0===t)return[i];if(!function(t){var e;return p(t)&&(void 0!==(e=t[lr])?!!e:"RegExp"==at(t))}(t))return e.call(i,t,r);for(var o,a,s,c=[],l=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),u=0,d=new RegExp(t.source,l+"g");(o=Gi.call(d,i))&&!((a=d.lastIndex)>u&&(c.push(i.slice(u,o.index)),o.length>1&&o.index<i.length&&ur.apply(c,o.slice(1)),s=o[0].length,u=a,c.length>=r));)d.lastIndex===o.index&&d.lastIndex++;return u===i.length?!s&&d.test("")||c.push(""):c.push(i.slice(u)),c.length>r?c.slice(0,r):c}:"0".split(void 0,0).length?function(t,n){return void 0===t&&0===n?[]:e.call(this,t,n)}:e,[function(e,n){var r=yt(this),o=null==e?void 0:e[t];return void 0!==o?o.call(e,r,n):i.call(String(r),e,n)},function(t,r){var o=n(i,t,this,r,i!==e);if(o.done)return o.value;var a=m(t),s=String(this),c=pn(a,RegExp),l=a.unicode,u=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(fr?"y":"g"),d=new c(fr?a:"^(?:"+a.source+")",u),f=void 0===r?4294967295:r>>>0;if(0===f)return[];if(0===s.length)return null===nr(d,s)?[s]:[];for(var p=0,h=0,v=[];h<s.length;){d.lastIndex=fr?h:0;var g,b=nr(d,fr?s:s.slice(h));if(null===b||(g=dr(Pt(d.lastIndex+(fr?0:h)),s.length))===p)h=er(s,h,l);else{if(v.push(s.slice(p,h)),v.length===f)return v;for(var w=1;w<=b.length-1;w++)if(v.push(b[w]),v.length===f)return v;h=p=g}}return v.push(s.slice(p)),v}]}),!fr);var pr,hr=Re.trim;te({target:"String",proto:!0,forced:(pr="trim",d((function(){return!!je[pr]()||" "!=" "[pr]()||je[pr].name!==pr})))},{trim:function(){return hr(this)}});var vr=Array.isArray||function(t){return"Array"==at(t)},gr=D("species"),br=function(t,e){var n;return vr(t)&&("function"!=typeof(n=t.constructor)||n!==Array&&!vr(n.prototype)?p(n)&&null===(n=n[gr])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===e?0:e)},mr=function(t,e,n){var i=w(e);i in t?y.f(t,i,C(0,n)):t[i]=n},wr=D("species"),_r=function(t){return ci>=51||!d((function(){var e=[];return(e.constructor={})[wr]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},yr=_r("splice"),Cr=oe("splice",{ACCESSORS:!0,0:0,1:2}),xr=Math.max,Er=Math.min;te({target:"Array",proto:!0,forced:!yr||!Cr},{splice:function(t,e){var n,i,r,o,a,s,c=fe(this),l=Pt(c.length),u=Nt(t,l),d=arguments.length;if(0===d?n=i=0:1===d?(n=0,i=l-u):(n=d-2,i=Er(xr(Tt(e),0),l-u)),l+n-i>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(r=br(c,i),o=0;o<i;o++)(a=u+o)in c&&mr(r,o,c[a]);if(r.length=i,n<i){for(o=u;o<l-i;o++)s=o+n,(a=o+i)in c?c[s]=c[a]:delete c[s];for(o=l;o>l-i+n;o--)delete c[o-1]}else if(n>i)for(o=l-i;o>u;o--)s=o+n-1,(a=o+i-1)in c?c[s]=c[a]:delete c[s];for(o=0;o<n;o++)c[o+u]=arguments[o+2];return c.length=l-i+n,r}});function $r(t){var e=window.$BpGlobalWidgetHook;if(e)for(var n=0;n<e.length;n++)e[n]&&e[n](t)}var Sr=Object.freeze({__proto__:null,addWidgetShake:function(t){window.$BpGlobalWidgetHook||(window.$BpGlobalWidgetHook=[]);var e=window.$BpGlobalWidgetHook;e.indexOf(t)<0&&e.push(t)},removeWidgetShake:function(t){var e=window.$BpGlobalWidgetHook;e&&e.indexOf(t)>=0&&e.splice(0,1)},callWidgetShake:$r});function Or(t){var n=window.getComputedStyle(t,null);return n=(n=n?n["transition-duration"]:"0.1s").split(",")[0],n=e.string.trim(n),n=e.string.replace(n,"s",""),n=parseFloat(n),n=Math.ceil(1e3*n)||100}function kr(t){return"touchmove"==t.type||"mousewheel"==t.type||t.preventDefault(),!1}function jr(t){t.hasClass("bp-widget__bodyFixscroll")&&$("body").addClass("bp-widget__fixscroll");var n=t.attr("data-htmlp");if(n.length>0){var i=e.string.replace(n,"px","");$r(i=parseInt(i)||0),$("html").css("padding-right",n)}}function Tr(n,i,r,o,s){var c,l=this,u=$(n);if(r&&((c=u)&&!e.dom.isDom(c)&&(c=c[0]),c&&(e.utils.browserIsMobile()?(e.dom.removeEventListener(c,"touchmove",kr),e.dom.addEventListener(c,"touchmove",kr),e.dom.removeEventListener(c,"touchup",kr),e.dom.addEventListener(c,"touchup",kr),e.dom.removeEventListener(c,"touchdown",kr),e.dom.addEventListener(c,"touchdown",kr)):(e.dom.removeEventListener(c,"mousewheel",kr),e.dom.addEventListener(c,"mousewheel",kr),e.dom.removeEventListener(c,"mouseover",kr),e.dom.addEventListener(c,"mouseover",kr)),e.dom.removeEventListener(c,"click",kr),e.dom.addEventListener(c,"click",kr))),u.hasClass("bp-widget__visible")||u.hasClass("bp-widget__showing"))s&&s();else{!function(t){navigator.userAgent.toLowerCase().indexOf("baidu")>=0&&t.css("backdrop-filter","none")}(u);var d="page"+$(".bp-navbarView_page").length,f=function(t){for(var e=2e3,n=$(".bp-widget[data-mark='".concat(t,"']")),i=0;i<n.length;i++){var r=Number($(n[i]).css("z-index"))||0;r>e&&(e=r)}return e}(d)+2;u.css("z-index",f),u.attr("data-mark",d),u.addClass("bp-widget__showing").removeClass("bp-widget__closing"),i&&u.addClass("bp-widget__maskTmp");var p=!1,h=$("body"),v=$("html");if(o){var g=!1,b=0;(i||r)&&(e.utils.browserIsMobile()||(b=window.innerWidth-e.dom.getViewPort().width),e.dom.getDocumentPort().height>e.dom.getViewPort().height&&(g=!0)),g?(h.addClass("bp-widget__fixscroll"),b>0&&($r(b),v.css("padding-right",b+"px")),p=!0,u.addClass("bp-widget__willFix")):p=h.hasClass("bp-widget__fixscroll")}p?navigator.userAgent.indexOf("Firefox")>=0&&u.css("overflow-y","scroll"):navigator.userAgent.indexOf("Firefox")>=0&&u.css("overflow-y",""),h.hasClass("bp-widget__fixscroll")&&u.addClass("bp-widget__bodyFixscroll");var m,w=v.css("padding-right");if(w&&w.length>0&&u.attr("data-htmlp",w),i)for(var _=Pr(d),y=_.length-1;y>=0;y--){var C=_[y].el;if(C.hasClass("bp-widget__mask")&&!u[0].isEqualNode(C[0])){m=C;break}}t.dom.probeDom(200,function(){return a(this,l),0==window.innerWidth-e.dom.getViewPort().width}.bind(this),function(){var t=this;a(this,l),e.utils.sleep(0).then(function(){a(this,t),u.addClass("bp-widget__invisible"),u.removeClass("bp-widget__maskTmp"),i&&(m||u.addClass("bp-widget__mask")),u.css("display","inherit")}.bind(this)).then(function(){if(a(this,t),u.hasClass("bp-widget__closing"))return Promise.reject();var e=Or(u[0])||100;return u.removeClass("bp-widget__invisible").addClass("bp-widget__visible"),e}.bind(this)).then(function(n){return a(this,t),e.utils.sleep(n)}.bind(this)).then(function(){if(a(this,t),u.removeClass("bp-widget__showing"),u.hasClass("bp-widget__closing")||u.hasClass("bp-widget__invisible"))return Promise.reject();i&&m?u.addClass("bp-widget__mask").addClass("bp-widget__maskNoAminate"):i&&u.addClass("bp-widget__mask"),m&&m.removeClass("bp-widget__mask").addClass("bp-widget__maskTmp").addClass("bp-widget__maskNoAminate"),s&&s()}.bind(this)).catch(function(){a(this,t)}.bind(this))}.bind(this))}}function Ir(t){var e="page"+$(".bp-navbarView_page").length,n=$("".concat(t||".bp-apiClass"));if(n.length>0){n.remove();for(var i=Pr(e),r=0;r<i.length;r++){var o=i[r].el;if(o.hasClass("bp-widget__mask"))return;if(o.hasClass("bp-widget__maskTmp"))return void o.removeClass("bp-widget__maskTmp").addClass("bp-widget__mask").removeClass("bp-widget__maskNoAminate")}!function(){$("body").removeClass("bp-widget__fixscroll");var t=$("html").css("padding-right");t&&t.length>0&&($r(0),$("html").css("padding-right",""))}()}}function Pr(t){for(var e=this,n=$(".bp-widget[data-mark='".concat(t,"']")),i=[],r=0;r<n.length;r++){var o=$(n[r]),s=Number(o.css("z-index"))||2e3;i.push({zIndex:s,el:o})}return i.sort(function(t,n){return a(this,e),t.zIndex==n.zIndex?0:t.zIndex>n.zIndex?1:-1}.bind(this)),i}function Ar(t){window.$BpGlobalDialogComponents=e.utils.mergeMap(t)}function Rr(){return window.$BpGlobalDialogComponents}function Nr(t){var e=this;t?t.vm.hide().then(function(n){a(this,e),$(".".concat(t.id)).remove()}.bind(this)):Ir(".bp-alertClass")}var Mr=Nr,Lr=Nr;var Dr=Object.freeze({__proto__:null,hideDialog:Nr,hideAlert:Mr,hideConfirm:Lr,showAlert:function(t){var i=this,r=Rr().alert;if(!r)throw new Error("dialog alert component is null");"string"!=typeof t&&"number"!=typeof t||(t={content:t.toString()}),t.title=t.title||"",t=e.utils.mergeMap(r.data(),t);var o=e.utils.mergeMap(r,{data:function(){return a(this,i),t}.bind(this)}),s="c"+e.crypt.uuid();$('<div id="'.concat(s,'"></div>')).appendTo($("body"));var c=new n({render:function(e){var n=this;return a(this,i),e(o,{class:["bp-apiClass","bp-alertClass",s],on:{confirm:function(){var e=this;a(this,n),t.confirm?t.confirm({vm:c.$children[0].$children[0],id:s}):c.$children[0].$children[0].hide().then(function(t){a(this,e),$(".".concat(s)).remove()}.bind(this))}.bind(this)}})}.bind(this)}).$mount("#".concat(s));return c.$children[0].$children[0].show().then(function(t){a(this,i)}.bind(this)),{vm:c.$children[0].$children[0],id:s}},showConfirm:function(t){var i=this,r=Rr().confirm;if(!r)throw new Error("dialog confirm component is null");"string"==typeof t&&(t={content:t}),t.title=t.title||"",t=e.utils.mergeMap(r.data(),t);var o=e.utils.mergeMap(r,{data:function(){return a(this,i),t}.bind(this)}),s="c"+e.crypt.uuid();$('<div id="'.concat(s,'"></div>')).appendTo($("body"));var c=new n({render:function(e){var n=this;return a(this,i),e(o,{class:["bp-apiClass","bp-alertClass",s],on:{confirm:function(){var e=this;a(this,n),t.confirm?t.confirm({vm:c.$children[0].$children[0],id:s}):c.$children[0].$children[0].hide().then(function(t){a(this,e),$(".".concat(s)).remove()}.bind(this))}.bind(this),cancel:function(){var e=this;a(this,n),t.cancel?t.cancel({vm:c.$children[0].$children[0],id:s}):c.$children[0].$children[0].hide().then(function(t){a(this,e),$(".".concat(s)).remove()}.bind(this))}.bind(this)}})}.bind(this)}).$mount("#".concat(s));return c.$children[0].$children[0].show().then(function(t){a(this,i)}.bind(this)),{vm:c.$children[0].$children[0],id:s}},showWidget:function(i){var r=this;if(!i||!t.dom.isVueComponent(i))throw new Error("component is null or not a Component");var o="c"+e.crypt.uuid();$('<div id="'.concat(o,'"></div>')).appendTo($("body"));var s=new n({render:function(t){var e=this;return a(this,r),t(i,{"update:visible":function(t){a(this,e),t||$(".".concat(o)).remove()}.bind(this)})}.bind(this)}).$mount("#".concat(o));return s.$children[0].$children[0].show().then(function(t){a(this,r)}.bind(this)),{vm:s.$children[0].$children[0],id:o}}}),Fr="$BpGlobalLoadingTimeout",Br="$BpGlobalLoading";function Vr(t,e){window[Br]=null}var zr=Object.freeze({__proto__:null,isLoadingVisible:function(){return $(".bp-loadingClass").length>0},hideLoading:function(){window[Fr]&&(clearTimeout(window[Fr].tm),window[Fr]=null),window[Br]&&window[Br].$children[0].hide()},showLoading:function(i){var r=this;t.router.off("routeChanged",Vr),t.router.on("routeChanged",Vr),i||(i="");var o=Rr().loading;if(!o)throw new Error("dialog loading component is null");if(!window[Br]){var s="c"+e.crypt.uuid();$('<div id="'.concat(s,'"></div>')).appendTo($("body"));var c=new n({render:function(t){return a(this,r),t(o,{class:["bp-apiClass","bp-loadingClass",s]})}.bind(this)}).$mount("#".concat(s));window[Br]=c.$children[0]}"string"!=typeof i&&"number"!=typeof i||(i={content:i.toString()}),i.delay=i.delay||0,i.delay<0&&(i.delay=0);var l=Date.now();window[Fr]&&(window[Fr].now>l+i.delay?(clearTimeout(window[Fr].tm),window[Fr]=null):window[Fr].cfg=e.utils.mergeMap(i)),l+=i.delay;var u=setTimeout(function(){a(this,r);var t=window[Fr].cfg;window[Fr]=null,t=e.utils.mergeMap(o.data(),t),window[Br].$data.content=t.content,window[Br].$children[0].show()}.bind(this),i.delay);window[Fr]={tm:u,now:l,cfg:e.utils.mergeMap(i)}}});var Wr,Ur=Object.freeze({__proto__:null,showToast:function(t){var i=this;t||(t="");var r=Rr().toast;if(!r)throw new Error("dialog toast component is null");"string"!=typeof t&&"number"!=typeof t||(t={content:t.toString()}),t.durable=t.durable||0,t.pos=t.pos||"top",t.durable<0&&(t.durable=0),0==t.durable&&(t.durable=4e3);var o="c"+e.crypt.uuid();$('<div id="'.concat(o,'"></div>')).appendTo($("body"));var s=new n({render:function(e){return a(this,i),e(r,{class:["bp-apiClass",o,"center"==t.pos?"bp-toast__center":""]})}.bind(this)}).$mount("#".concat(o));s.$children[0].$data.content=t.content,s.$children[0].$data.icon=t.icon,s.$children[0].$children[0].show().then(function(t){a(this,i)}.bind(this));var c=s.$children[0].$children[0];setTimeout(function(){var t=this;a(this,i);c&&c.hide().then(function(e){a(this,t),o&&o.length>0&&$("."+o).remove()}.bind(this))}.bind(this),t.durable)}}),Gr=o(o(o({},Dr),zr),Ur);function Xr(t){Xr.installed&&Wr===t||(Xr.installed=!0,Wr=t,Object.defineProperty(t.prototype,"$bpWidget",{get:function(){return Gr}}))}var qr={components:{},props:{visible:Boolean,mask:{default:!0,type:Boolean},maskClose:{default:!1,type:Boolean},preventEvent:{default:!0,type:Boolean},hideBodyScroll:{default:!0,type:Boolean},pageClass:String|Array,pageStyle:String|Array|Object},watch:{visible:function(t){var e=this;t?this.show().then(function(){a(this,e)}.bind(this)):this.hide().then(function(){a(this,e)}.bind(this))}},mounted:function(){var t=this;this.visible&&this.show().then(function(){a(this,t)}.bind(this))},beforeDestroy:function(){var t=this;this.visible&&this.hide().then(function(){a(this,t)}.bind(this))},methods:{show:function(){var t=this;return new Promise(function(e){var n=this;a(this,t),Tr(this.$el,this.mask,this.preventEvent,this.hideBodyScroll,function(){a(this,n),this.$emit("update:visible",!0),e()}.bind(this))}.bind(this))},hide:function(){var t=this;return new Promise(function(e){var n=this;a(this,t),function(t,e){var n=$(t);if(n.hasClass("bp-widget__invisible")||n.hasClass("bp-widget__closing"))e&&e();else{var i="page"+$(".bp-navbarView_page").length;n.addClass("bp-widget__closing").removeClass("bp-widget__showing"),n.removeClass("bp-widget__visible").addClass("bp-widget__invisible"),n.attr("data-mark","");var r,o,a=Number(n.css("z-index"))||0,s=Pr(i),c=!1;if(s.length)for(var l=s.length-1;l>=0;l--){var u=s[l].el,d=s[l].zIndex;"none"===u[0].style.display||u.hasClass("bp-widget__closing")||u.hasClass("bp-widget__invisible")||(c=!0,!r&&d<a&&(u.hasClass("bp-widget__mask")||u.hasClass("bp-widget__maskTmp"))&&(r=u),!o&&d>a&&(o=u))}c||($("body").removeClass("bp-widget__fixscroll"),$r(0),$("html").css("padding-right","")),!o&&r&&r.removeClass("bp-widget__maskTmp").addClass("bp-widget__maskNoAminate").addClass("bp-widget__mask");var f=Or(n[0])||100;setTimeout((function(){n.css("display","none"),n.removeClass("bp-widget__closing"),n.removeClass("bp-widget__mask"),n.removeClass("bp-widget__maskNoAminate"),!o&&r&&r.removeClass("bp-widget__maskNoAminate"),e&&e()}),f)}}(this.$el,function(){a(this,n),this.$emit("update:visible",!1),e()}.bind(this))}.bind(this))},onClickMask:function(){var t=this;this.maskClose&&this.hide().then(function(e){a(this,t)}.bind(this))}}},Hr=D("isConcatSpreadable"),Kr=ci>=51||!d((function(){var t=[];return t[Hr]=!1,t.concat()[0]!==t})),Yr=_r("concat"),Jr=function(t){if(!p(t))return!1;var e=t[Hr];return void 0!==e?!!e:vr(t)};function Qr(t,e,n,i,r,o,a,s,c,l){"boolean"!=typeof a&&(c=s,s=a,a=!1);var u,d="function"==typeof n?n.options:n;if(t&&t.render&&(d.render=t.render,d.staticRenderFns=t.staticRenderFns,d._compiled=!0,r&&(d.functional=!0)),i&&(d._scopeId=i),o?(u=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,c(t)),t&&t._registeredComponents&&t._registeredComponents.add(o)},d._ssrRegister=u):e&&(u=a?function(t){e.call(this,l(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,s(t))}),u)if(d.functional){var f=d.render;d.render=function(t,e){return u.call(e),f(t,e)}}else{var p=d.beforeCreate;d.beforeCreate=p?[].concat(p,u):[u]}return n}te({target:"Array",proto:!0,forced:!Kr||!Yr},{concat:function(t){var e,n,i,r,o,a=fe(this),s=br(a,0),c=0;for(e=-1,i=arguments.length;e<i;e++)if(Jr(o=-1===e?a:arguments[e])){if(c+(r=Pt(o.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n<r;n++,c++)n in o&&mr(s,c,o[n])}else{if(c>=9007199254740991)throw TypeError("Maximum allowed index exceeded");mr(s,c++,o)}return s.length=c,s}});var Zr=qr,to=function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"bp-widget",on:{click:this.onClickMask}},[e("div",{staticClass:"bp-widget__content",class:this.pageClass,style:this.pageStyle},[this._t("default")],2)])};to._withStripped=!0;var eo=Qr({render:to,staticRenderFns:[]},void 0,Zr,void 0,!1,void 0,!1,void 0,void 0,void 0),no={components:{bpIcon:t.VueObject.bpIcon,widget:eo},props:{visible:Boolean,mask:{default:!0,type:Boolean},maskClose:Boolean,pageClass:String|Array,pageStyle:String|Array|Object,showClose:{default:!0,type:Boolean},title:String},data:function(){return{visibleReal:!1,footClass:null}},watch:{visible:function(t){this.visibleReal=t},visibleReal:function(t){this.$emit("update:visible",t)}},beforeMount:function(){this.visibleReal=this.visible;var t=this.$slots.foot;if(t&&t[0]&&t[0].children){for(var e=0,n=0;n<t[0].children.length;n++)t[0].children[n].tag&&e++;1==e?this.footClass="bp-dialog__footOneButton":2==e?this.footClass="bp-dialog__footTwoButton":3==e&&(this.footClass="bp-dialog__footThreeButton")}},beforeDestroy:function(){},mounted:function(){},methods:{show:function(){return this.$refs.widget.show()},hide:function(){return this.$refs.widget.hide()}}},io=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("widget",{ref:"widget",staticClass:"bp-dialog",attrs:{visible:t.visibleReal,maskClose:t.maskClose,mask:t.mask,pageClass:t.pageClass,pageStyle:t.pageStyle,preventEvent:!0},on:{"update:visible":function(e){t.visibleReal=e}}},[t.$slots.title?n("div",{staticClass:"bp-dialog__title bp-ellipsis",on:{click:function(t){t.stopPropagation()}}},[t._t("title")],2):t.title?n("div",{staticClass:"bp-dialog__title bp-ellipsis",on:{click:function(t){t.stopPropagation()}}},[t._v(t._s(t.title))]):t._e(),t._v(" "),n("div",{staticClass:"bp-dialog__main",on:{click:function(t){t.stopPropagation()}}},[t._t("default")],2),t._v(" "),t.$slots.foot?n("div",{staticClass:"bp-dialog__foot",class:t.footClass,on:{click:function(t){t.stopPropagation()}}},[t._t("foot")],2):t._e(),t._v(" "),t.showClose?n("bp-icon",{staticClass:"bp-dialog__close",attrs:{name:"bp-dialog_close"},on:{click:function(e){e.stopPropagation(),t.hide().then((function(t){}))}}}):t._e()],1)};io._withStripped=!0;var ro=Qr({render:io,staticRenderFns:[]},void 0,no,void 0,!1,void 0,!1,void 0,void 0,void 0),oo={components:{bpDialog:ro},data:function(){return{title:"",content:"",okText:"确认"}}},ao=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("bp-dialog",{attrs:{title:t.title,showClose:!1}},[t._v("\n "+t._s(t.content)+"\n "),n("div",{attrs:{slot:"foot"},slot:"foot"},[n("button",{on:{click:function(e){return t.$emit("confirm")}}},[t._v(t._s(t.okText))])])])};ao._withStripped=!0;var so=Qr({render:ao,staticRenderFns:[]},void 0,oo,void 0,!1,void 0,!1,void 0,void 0,void 0),co={components:{bpDialog:ro},data:function(){return{title:"",content:"",okText:"确认",cancelText:"取消"}}},lo=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("bp-dialog",{attrs:{title:t.title,showClose:!1}},[t._v("\n "+t._s(t.content)+"\n "),n("div",{attrs:{slot:"foot"},slot:"foot"},[n("button",{staticStyle:{"font-weight":"500"},on:{click:function(e){return t.$emit("cancel")}}},[t._v(t._s(t.cancelText))]),t._v(" "),n("button",{on:{click:function(e){return t.$emit("confirm")}}},[t._v(t._s(t.okText))])])])};lo._withStripped=!0;var uo=Qr({render:lo,staticRenderFns:[]},void 0,co,void 0,!1,void 0,!1,void 0,void 0,void 0),fo={components:{bpIcon:t.VueObject.bpIcon,widget:eo},data:function(){return{content:""}}},po=function(){var t=this.$createElement,e=this._self._c||t;return e("widget",{ref:"widget",staticClass:"bp-loading",attrs:{mask:!1,preventEvent:!0}},[e("div",{staticClass:"bp-loading__main"},[e("bp-icon",{attrs:{name:"loading"}})],1),this._v(" "),e("div",{staticClass:"bp-loading__text"},[this._v("\n "+this._s(this.content)+"\n ")])])};po._withStripped=!0;var ho=Qr({render:po,staticRenderFns:[]},void 0,fo,void 0,!1,void 0,!1,void 0,void 0,void 0),vo={components:{bpIcon:t.VueObject.bpIcon,widget:eo},data:function(){return{content:"",icon:null}}},go=function(){var t=this.$createElement,e=this._self._c||t;return e("widget",{ref:"widget",staticClass:"bp-toast",attrs:{mask:!1,preventEvent:!1,hideBodyScroll:!1}},[e("div",[this.icon?e("div",{staticClass:"bp-toast__main"},[e("bp-icon",{attrs:{name:this.icon}})],1):this._e(),this._v(" "),e("div",{staticClass:"bp-toast__text"},[this._v("\n "+this._s(this.content)+"\n ")])])])};go._withStripped=!0;var bo=Qr({render:go,staticRenderFns:[]},void 0,vo,void 0,!1,void 0,!1,void 0,void 0,void 0);function mo(t,e){var n=this;Ir(),setTimeout(function(){a(this,n);var t=$(".bp-navbarView_page").length,e=$(".bp-widget[data-mark='".concat("page"+t,"']"));if(0==e.length)$("body").removeClass("bp-widget__fixscroll"),$("html").css("padding-right","");else{for(var i=0;i<e.length;i++){var r=$(e[i]);if(r.hasClass("bp-widget__mask")&&r.hasClass("bp-widget__visible"))return void jr(r)}$("body").removeClass("bp-widget__fixscroll"),$("html").css("padding-right","")}}.bind(this),800)}function wo(){t.icons.registerAliasIcon("bp-dialog_close","cancel"),Ar({alert:so,confirm:uo,loading:ho,toast:bo}),t.router.off("routeChanged",mo).on("routeChanged",mo)}return wo(),{init:wo,VuePlugin:function(){return{install:Xr}},hook:Sr,registerDialogComponents:Ar,apiWidget:Gr,bpDialog:ro,bpWidget:eo}})); |
{ | ||
"description": "dialog", | ||
"dependencies": { | ||
"@bpui/libs": "^0.2.9", | ||
"febs-browser": "^1.0.2", | ||
"@bpui/libs": "^0.2.10", | ||
"febs-browser": "^1.0.3", | ||
"vue": "^2.6.11" | ||
@@ -24,4 +24,3 @@ }, | ||
}, | ||
"main": "dist/index.common.js", | ||
"module": "dist/index.esm.js", | ||
"main": "src/index.js", | ||
"unpkg": "dist/index.min.js", | ||
@@ -40,3 +39,3 @@ "types": "types/index.d.ts", | ||
"name": "@bpui/dialog", | ||
"version": "0.1.21" | ||
"version": "0.1.22" | ||
} |
@@ -1,37 +0,34 @@ | ||
'use strict'; | ||
"use strict"; | ||
/** | ||
* Copyright (c) 2020 Copyright bp All Rights Reserved. | ||
* Author: lipengxiang | ||
* Date: 2020-02-28 17:07 | ||
* Desc: | ||
*/ | ||
* Copyright (c) 2020 Copyright bp All Rights Reserved. | ||
* Author: lipengxiang | ||
* Date: 2020-02-28 17:07 | ||
* Desc: | ||
*/ | ||
// .bp-widget | ||
import * as febs from 'febs-browser'; | ||
import bpLibs from '@bpui/libs'; | ||
import * as hooks from './hooks'; | ||
import * as febs from "febs-browser"; | ||
import bpLibs from "@bpui/libs"; | ||
import * as hooks from "./hooks"; | ||
const ApiClass = 'bp-apiClass'; | ||
const ApiClass = "bp-apiClass"; | ||
function domGetDuration(el) { | ||
let d = window.getComputedStyle(el, null); | ||
d = d? d['transition-duration']: '0.1s'; | ||
d = d.split(',')[0]; | ||
d = d ? d["transition-duration"] : "0.1s"; | ||
d = d.split(",")[0]; | ||
d = febs.string.trim(d); | ||
d = febs.string.replace(d, 's', ''); | ||
d = febs.string.replace(d, "s", ""); | ||
d = parseFloat(d); | ||
d = Math.ceil(d*1000) || 100; | ||
d = Math.ceil(d * 1000) || 100; | ||
return d; | ||
} | ||
function maskPreventHandler(event){ | ||
if (event.type == 'touchmove' || event.type == 'mousewheel') { | ||
function maskPreventHandler(event) { | ||
if (event.type == "touchmove" || event.type == "mousewheel") { | ||
} else { | ||
event.preventDefault(); | ||
} | ||
else { | ||
event.preventDefault(); | ||
} | ||
return false; | ||
@@ -50,22 +47,21 @@ } | ||
if (febs.utils.browserIsMobile()) { | ||
febs.dom.removeEventListener(ee, 'touchmove', maskPreventHandler); | ||
febs.dom.addEventListener(ee, 'touchmove', maskPreventHandler); | ||
febs.dom.removeEventListener(ee, 'touchup', maskPreventHandler); | ||
febs.dom.addEventListener(ee, 'touchup', maskPreventHandler); | ||
febs.dom.removeEventListener(ee, 'touchdown', maskPreventHandler); | ||
febs.dom.addEventListener(ee, 'touchdown', maskPreventHandler); | ||
febs.dom.removeEventListener(ee, "touchmove", maskPreventHandler); | ||
febs.dom.addEventListener(ee, "touchmove", maskPreventHandler); | ||
febs.dom.removeEventListener(ee, "touchup", maskPreventHandler); | ||
febs.dom.addEventListener(ee, "touchup", maskPreventHandler); | ||
febs.dom.removeEventListener(ee, "touchdown", maskPreventHandler); | ||
febs.dom.addEventListener(ee, "touchdown", maskPreventHandler); | ||
} else { | ||
febs.dom.removeEventListener(ee, "mousewheel", maskPreventHandler); | ||
febs.dom.addEventListener(ee, "mousewheel", maskPreventHandler); | ||
febs.dom.removeEventListener(ee, "mouseover", maskPreventHandler); | ||
febs.dom.addEventListener(ee, "mouseover", maskPreventHandler); | ||
} | ||
else { | ||
febs.dom.removeEventListener(ee, 'mousewheel', maskPreventHandler); | ||
febs.dom.addEventListener(ee, 'mousewheel', maskPreventHandler); | ||
febs.dom.removeEventListener(ee, 'mouseover', maskPreventHandler); | ||
febs.dom.addEventListener(ee, 'mouseover', maskPreventHandler); | ||
} | ||
febs.dom.removeEventListener(ee, 'click', maskPreventHandler); | ||
febs.dom.addEventListener(ee, 'click', maskPreventHandler); | ||
febs.dom.removeEventListener(ee, "click", maskPreventHandler); | ||
febs.dom.addEventListener(ee, "click", maskPreventHandler); | ||
} | ||
export function getWidgetLength() { | ||
let pageLen = $('.bp-navbarView_page').length; | ||
let dataMark = 'page' + pageLen; | ||
let pageLen = $(".bp-navbarView_page").length; | ||
let dataMark = "page" + pageLen; | ||
let masks = $(`.bp-widget[data-mark='${dataMark}']`); | ||
@@ -76,4 +72,4 @@ return masks.length; | ||
/** | ||
* @desc: 遮罩层当前的zindex. | ||
*/ | ||
* @desc: 遮罩层当前的zindex. | ||
*/ | ||
export function getWidgetZIndex(dataMark) { | ||
@@ -83,3 +79,3 @@ let zIndex = 2000; | ||
for (let i = 0; i < mask.length; i++) { | ||
let t = Number($(mask[i]).css('z-index'))||0; | ||
let t = Number($(mask[i]).css("z-index")) || 0; | ||
if (t > zIndex) { | ||
@@ -95,4 +91,4 @@ zIndex = t; | ||
var sUserAgent = navigator.userAgent.toLowerCase(); | ||
if(sUserAgent.indexOf("baidu") >= 0) { | ||
el.css('backdrop-filter', 'none'); | ||
if (sUserAgent.indexOf("baidu") >= 0) { | ||
el.css("backdrop-filter", "none"); | ||
} | ||
@@ -105,12 +101,12 @@ } | ||
export function restoreFixedScroll(widget) { | ||
if (widget.hasClass('bp-widget__bodyFixscroll')) { | ||
$('body').addClass('bp-widget__fixscroll'); | ||
if (widget.hasClass("bp-widget__bodyFixscroll")) { | ||
$("body").addClass("bp-widget__fixscroll"); | ||
} | ||
let ss = widget.attr('data-htmlp'); | ||
let ss = widget.attr("data-htmlp"); | ||
if (ss.length > 0) { | ||
let sss = febs.string.replace(ss, 'px', ''); | ||
sss = parseInt(sss)||0; | ||
let sss = febs.string.replace(ss, "px", ""); | ||
sss = parseInt(sss) || 0; | ||
hooks.callWidgetShake(sss); | ||
$('html').css('padding-right', ss); | ||
$("html").css("padding-right", ss); | ||
} | ||
@@ -122,10 +118,10 @@ } | ||
export function removeFixedScrollByWidget(preWidget) { | ||
if (!preWidget.hasClass('bp-widget__bodyFixscroll')) { | ||
$('body').removeClass('bp-widget__fixscroll'); | ||
if (!preWidget.hasClass("bp-widget__bodyFixscroll")) { | ||
$("body").removeClass("bp-widget__fixscroll"); | ||
} | ||
let ss = preWidget.attr('data-htmlp'); | ||
let ss = preWidget.attr("data-htmlp"); | ||
if (ss.length <= 0) { | ||
hooks.callWidgetShake(0); | ||
$('html').css('padding-right', ''); | ||
$("html").css("padding-right", ""); | ||
} | ||
@@ -135,7 +131,7 @@ } | ||
function removeFixedScroll() { | ||
$('body').removeClass('bp-widget__fixscroll'); | ||
let pr = $('html').css('padding-right'); | ||
$("body").removeClass("bp-widget__fixscroll"); | ||
let pr = $("html").css("padding-right"); | ||
if (pr && pr.length > 0) { | ||
hooks.callWidgetShake(0); | ||
$('html').css('padding-right', ''); | ||
$("html").css("padding-right", ""); | ||
} | ||
@@ -145,6 +141,5 @@ } | ||
/** | ||
* @desc: 显示遮罩层. | ||
*/ | ||
* @desc: 显示遮罩层. | ||
*/ | ||
export function showWidget(el, showMask, preventEvent, hideBodyScroll, cb) { | ||
let mask = $(el); | ||
@@ -156,18 +151,25 @@ | ||
if (mask.hasClass('bp-widget__visible')) { | ||
// 防止多次调用 | ||
// bp-widget__showing只是标示 正在显示的的样式名,没有实际样式 | ||
if (mask.hasClass("bp-widget__visible") || mask.hasClass("bp-widget__showing")) { | ||
if (cb) cb(); | ||
return; | ||
} | ||
hack(mask); | ||
// 防止scroll造成的页面抖动. | ||
// let body = $('body'); | ||
// let html = $('html'); | ||
const pageLen = $(".bp-navbarView_page").length; | ||
const dataMark = "page" + pageLen; | ||
const zindex = getWidgetZIndex(dataMark) + 2; | ||
mask.css("z-index", zindex); | ||
mask.attr("data-mark", dataMark); | ||
mask.addClass("bp-widget__showing").removeClass("bp-widget__closing"); | ||
if (showMask) { | ||
// 在hideWidget用来辅助判断 是否是显示showMask的widget | ||
mask.addClass("bp-widget__maskTmp"); | ||
} | ||
let hidedScroll = false; | ||
let body = $('body'); | ||
let html = $('html'); | ||
const body = $("body"); | ||
const html = $("html"); | ||
if (hideBodyScroll) { | ||
@@ -177,7 +179,10 @@ let willFix = false; | ||
if ((showMask||preventEvent)) { | ||
if (showMask || preventEvent) { | ||
// 桌面端判断垂直滚动条. | ||
if (!febs.utils.browserIsMobile()) { | ||
scrollWidth = window.innerWidth - febs.dom.getViewPort().width; | ||
if (scrollWidth > 0) { | ||
// if (scrollWidth > 0) { | ||
// willFix = true; | ||
// } | ||
if (febs.dom.getDocumentPort().height > febs.dom.getViewPort().height) { | ||
willFix = true; | ||
@@ -193,78 +198,45 @@ } | ||
} | ||
if (willFix) { | ||
body.addClass('bp-widget__fixscroll'); | ||
body.addClass("bp-widget__fixscroll"); | ||
if (scrollWidth > 0) { | ||
hooks.callWidgetShake(scrollWidth); | ||
html.css('padding-right', scrollWidth + 'px'); | ||
html.css("padding-right", scrollWidth + "px"); | ||
} | ||
hidedScroll = true; | ||
mask.addClass('bp-widget__willFix'); | ||
mask.addClass("bp-widget__willFix"); | ||
} else { | ||
hidedScroll = body.hasClass("bp-widget__fixscroll"); | ||
} | ||
else { | ||
hidedScroll = body.hasClass('bp-widget__fixscroll'); | ||
} | ||
} | ||
// | ||
// polyfill firefox. | ||
if (hidedScroll) { | ||
if (navigator.userAgent.indexOf('Firefox') >= 0) { | ||
mask.css('overflow-y', 'scroll'); | ||
if (navigator.userAgent.indexOf("Firefox") >= 0) { | ||
mask.css("overflow-y", "scroll"); | ||
} | ||
} | ||
else { | ||
if (navigator.userAgent.indexOf('Firefox') >= 0) { | ||
mask.css('overflow-y', ''); | ||
} else { | ||
if (navigator.userAgent.indexOf("Firefox") >= 0) { | ||
mask.css("overflow-y", ""); | ||
} | ||
} | ||
// if (body.hasClass('bp-widget__fixscroll')) { | ||
// mask.css('padding-right', html.css('padding-right')); | ||
// } | ||
// else { | ||
// mask.css('padding-right', ''); | ||
// } | ||
let pageLen = $('.bp-navbarView_page').length; | ||
let dataMark = 'page' + pageLen; | ||
let zindex = getWidgetZIndex(dataMark) + 2; | ||
mask.css('z-index', zindex); | ||
// 标记. | ||
if (body.hasClass('bp-widget__fixscroll')) { | ||
mask.addClass('bp-widget__bodyFixscroll'); | ||
if (body.hasClass("bp-widget__fixscroll")) { | ||
mask.addClass("bp-widget__bodyFixscroll"); | ||
} | ||
let ss = html.css('padding-right'); | ||
if (ss.length > 0) { | ||
mask.attr('data-htmlp', ss); | ||
let ss = html.css("padding-right"); | ||
if (ss && ss.length > 0) { | ||
mask.attr("data-htmlp", ss); | ||
} | ||
let dialogs = []; | ||
let preMask; | ||
// zindex. | ||
let zIndex = 2000; | ||
let masks = $(`.bp-widget[data-mark='${dataMark}']`); | ||
for (let i = 0; i < masks.length; i++) { | ||
let el1 = $(masks[i]); | ||
let t = Number(el1.css('z-index'))||0; | ||
if (t > zIndex) { | ||
zIndex = t; | ||
} | ||
dialogs.push({zIndex:t, el:el1}); | ||
} | ||
// only one mask. | ||
let preMask; | ||
if (showMask) { | ||
dialogs.sort((a, b)=>{ | ||
if (a.zIndex == b.zIndex) return 0; | ||
return a.zIndex > b.zIndex? 1: -1; | ||
}); | ||
// 寻找最大的zindex. | ||
for (let i = dialogs.length-1; i >= 0; i--) { | ||
let mask0 = dialogs[i].el; | ||
if (mask0.hasClass('bp-widget__mask') && !mask[0].isEqualNode(mask0[0])) { | ||
let _widgets = _getSortWidget(dataMark); | ||
// 寻找最大的zindex的preMask | ||
for (let i = _widgets.length - 1; i >= 0; i--) { | ||
let mask0 = _widgets[i].el; | ||
if (mask0.hasClass("bp-widget__mask") && !mask[0].isEqualNode(mask0[0])) { | ||
preMask = mask0; | ||
@@ -274,69 +246,69 @@ break; | ||
} | ||
} // if. | ||
} | ||
// mask.children('.bp-widget__content') | ||
bpLibs.dom.probeDom( | ||
200, | ||
() => { | ||
return 0 == window.innerWidth - febs.dom.getViewPort().width; | ||
}, | ||
() => { | ||
febs.utils | ||
.sleep(0) | ||
.then(() => { | ||
mask.addClass("bp-widget__invisible"); | ||
mask.removeClass("bp-widget__maskTmp"); | ||
if (showMask) { | ||
if (!preMask) { | ||
mask.addClass("bp-widget__mask"); | ||
} | ||
} | ||
mask.css("display", "inherit"); | ||
}) | ||
.then(() => { | ||
if (mask.hasClass("bp-widget__closing")) { | ||
return Promise.reject(); | ||
} | ||
let duration = domGetDuration(mask[0]) || 100; | ||
mask.removeClass("bp-widget__invisible").addClass("bp-widget__visible"); | ||
return duration; | ||
}) | ||
.then(duration => { | ||
return febs.utils.sleep(duration); | ||
}) | ||
.then(() => { | ||
mask.removeClass("bp-widget__showing"); | ||
if (mask.hasClass("bp-widget__closing") || mask.hasClass("bp-widget__invisible")) { | ||
return Promise.reject(); | ||
} | ||
bpLibs.dom.probeDom(200, ()=>{ | ||
return 0 == window.innerWidth - febs.dom.getViewPort().width; | ||
}, ()=>{ | ||
febs.utils.sleep(0) | ||
.then(()=>{ | ||
mask.attr('data-mark', dataMark); | ||
mask.addClass('bp-widget__invisible'); | ||
mask.removeClass('bp-widget__maskTmp'); | ||
if (showMask) { | ||
if (!preMask) { | ||
mask.addClass('bp-widget__mask'); | ||
if (showMask && preMask) { | ||
mask.addClass("bp-widget__mask").addClass("bp-widget__maskNoAminate"); | ||
} else if (showMask) { | ||
mask.addClass("bp-widget__mask"); | ||
} | ||
} | ||
mask.css('display', 'inherit'); | ||
}) | ||
.then(()=>febs.utils.sleep(10)) | ||
.then(()=>{ | ||
if (mask.hasClass('bp-widget__closing')) { | ||
if (cb) { | ||
cb(); | ||
if (preMask) { | ||
preMask | ||
.removeClass("bp-widget__mask") | ||
.addClass("bp-widget__maskTmp") | ||
.addClass("bp-widget__maskNoAminate"); | ||
} | ||
return; | ||
} | ||
let duration = domGetDuration(mask[0])||100; | ||
mask.removeClass('bp-widget__invisible').addClass('bp-widget__visible'); | ||
return duration; | ||
}) | ||
.then((duration)=>febs.utils.sleep(duration)) | ||
.then(()=>{ | ||
if (mask.hasClass('bp-widget__closing')) { | ||
if (cb) { | ||
cb(); | ||
} | ||
return; | ||
} | ||
if (showMask && preMask) { | ||
mask.addClass('bp-widget__mask').addClass('bp-widget__maskNoAminate'); | ||
} | ||
else if (showMask) { | ||
mask.addClass('bp-widget__mask'); | ||
} | ||
if (preMask) { | ||
preMask.removeClass('bp-widget__mask').addClass('bp-widget__maskTmp').addClass('bp-widget__maskNoAminate'); | ||
} | ||
if (cb) { | ||
cb(); | ||
} | ||
}); | ||
}); | ||
}) | ||
.catch(() => {}); | ||
} | ||
); | ||
} | ||
/** | ||
* @desc: 隐藏所有的api层. | ||
*/ | ||
* @desc: 隐藏所有的api层. | ||
*/ | ||
export function removeAllApiModal(elementSelector) { | ||
let pageLen = $('.bp-navbarView_page').length; | ||
let dataMark = 'page' + pageLen; | ||
let pageLen = $(".bp-navbarView_page").length; | ||
let dataMark = "page" + pageLen; | ||
let apis = $(`${elementSelector?elementSelector:'.'+ApiClass}`); | ||
let apis = $(`${elementSelector ? elementSelector : "." + ApiClass}`); | ||
@@ -347,25 +319,17 @@ if (apis.length > 0) { | ||
// zindex. | ||
let dialogs = []; | ||
let masks = $(`.bp-widget[data-mark='${dataMark}']`); | ||
for (let i = 0; i < masks.length; i++) { | ||
let el1 = $(masks[i]); | ||
let t = Number(el1.css('z-index'))||0; | ||
dialogs.push({zIndex:t, el:el1}); | ||
} | ||
// only one mask. | ||
dialogs.sort((a, b)=>{ | ||
if (a.zIndex == b.zIndex) return 0; | ||
return a.zIndex > b.zIndex? -1: 1; | ||
}); | ||
let _widgets = _getSortWidget(dataMark); | ||
// 寻找最大的zindex. | ||
for (let i = 0; i < dialogs.length; i++) { | ||
let mask0 = dialogs[i].el; | ||
for (let i = 0; i < _widgets.length; i++) { | ||
let mask0 = _widgets[i].el; | ||
if (mask0.hasClass('bp-widget__mask')) { | ||
if (mask0.hasClass("bp-widget__mask")) { | ||
return; | ||
} | ||
if (mask0.hasClass('bp-widget__maskTmp')) { | ||
mask0.removeClass('bp-widget__maskTmp').addClass('bp-widget__mask').removeClass('bp-widget__maskNoAminate'); | ||
if (mask0.hasClass("bp-widget__maskTmp")) { | ||
mask0 | ||
.removeClass("bp-widget__maskTmp") | ||
.addClass("bp-widget__mask") | ||
.removeClass("bp-widget__maskNoAminate"); | ||
return; | ||
@@ -384,4 +348,5 @@ } | ||
let mask = $(el); | ||
if (mask.hasClass('bp-widget__invisible')) { | ||
// 防止多次调用 | ||
// bp-widget__closing只是标示 正在关闭的样式名,没有实际样式 | ||
if (mask.hasClass("bp-widget__invisible") || mask.hasClass("bp-widget__closing")) { | ||
if (cb) cb(); | ||
@@ -391,47 +356,47 @@ return; | ||
if (mask.hasClass('bp-widget__closing')) { | ||
if (cb) cb(); | ||
return; | ||
} | ||
mask.addClass('bp-widget__closing'); | ||
const pageLen = $(".bp-navbarView_page").length; | ||
const dataMark = "page" + pageLen; | ||
let pageLen = $('.bp-navbarView_page').length; | ||
let dataMark = 'page' + pageLen; | ||
let curZIndex = Number(mask.css('z-index')); | ||
let curMask = mask.hasClass('bp-widget__mask'); | ||
let curMaskTmp = mask.hasClass('bp-widget__maskTmp'); | ||
let hasFix = mask.hasClass('bp-widget__willFix'); | ||
mask.addClass("bp-widget__closing").removeClass("bp-widget__showing"); | ||
mask.removeClass("bp-widget__visible").addClass("bp-widget__invisible"); | ||
mask.attr("data-mark", ""); | ||
// zindex. | ||
let dialogs = []; | ||
let zIndex = 2000; | ||
let masks = $(`.bp-widget[data-mark='${dataMark}']`); | ||
// let curPageMaskLength = masks.length; | ||
for (let i = 0; i < masks.length; i++) { | ||
let el1 = $(masks[i]); | ||
let t = Number(el1.css('z-index'))||0; | ||
if (t > zIndex) { | ||
zIndex = t; | ||
} | ||
dialogs.push({zIndex:t, el:el1}); | ||
} | ||
const _zindex = Number(mask.css("z-index")) || 0; | ||
const sortWidget = _getSortWidget(dataMark); | ||
const l = sortWidget.length; | ||
let preMask; // zIndex 小于当前widget 并显示着的弹框 并带有mask 样式的弹框 | ||
let preWidget; // zIndex 小于当前widget 并显示着的弹框 | ||
let postWidget; // zIndex 大于当前widget的弹框 | ||
let isVisibleWidgetHasFixscroll = false; // 除了当前弹框,是否还有其他弹框显示着 | ||
// only one mask. | ||
let preMask; // 前一个带遮罩的dialog. | ||
let preWidget; // 前一个dialog. | ||
dialogs.sort((a, b)=>{ | ||
if (a.zIndex == b.zIndex) return 0; | ||
return a.zIndex > b.zIndex? -1: 1; | ||
}); | ||
if (l) { | ||
for (let i = sortWidget.length - 1; i >= 0; i--) { | ||
const mask0 = sortWidget[i].el; | ||
const mask0ZIndex = sortWidget[i].zIndex; | ||
const el = mask0[0]; | ||
// 寻找最大的zindex. | ||
if (!curMaskTmp && curMask) { | ||
for (let i = 0; i < dialogs.length; i++) { | ||
let mask0 = dialogs[i].el; | ||
if (Number(mask0.css('z-index')) < curZIndex) { | ||
if (!preWidget) preWidget = mask0; | ||
if (mask0.hasClass('bp-widget__maskTmp')) { | ||
// 判断是否是显示的其他弹框 | ||
if ( | ||
el.style.display !== "none" && | ||
!mask0.hasClass("bp-widget__closing") && | ||
!mask0.hasClass("bp-widget__invisible") | ||
) { | ||
isVisibleWidgetHasFixscroll = true; | ||
// 前一个带遮罩的弹框 | ||
if ( | ||
!preMask && | ||
mask0ZIndex < _zindex && | ||
(mask0.hasClass("bp-widget__mask") || mask0.hasClass("bp-widget__maskTmp")) | ||
) { | ||
preMask = mask0; | ||
break; | ||
} | ||
// 前一个弹框 | ||
if (!preWidget && mask0ZIndex < _zindex) { | ||
preWidget = mask0; | ||
} | ||
// 新打开的弹框 | ||
if (!postWidget && mask0ZIndex > _zindex) { | ||
postWidget = mask0; | ||
} | ||
} | ||
@@ -441,16 +406,24 @@ } | ||
if (!isVisibleWidgetHasFixscroll) { | ||
$("body").removeClass("bp-widget__fixscroll"); | ||
hooks.callWidgetShake(0); | ||
$("html").css("padding-right", ""); | ||
} | ||
mask.attr('data-mark', ''); | ||
mask.removeClass('bp-widget__visible').addClass('bp-widget__invisible'); | ||
let duration = domGetDuration(mask[0])||100; | ||
if (preMask) { | ||
preMask.removeClass('bp-widget__maskTmp').addClass('bp-widget__mask'); | ||
if (!postWidget && preMask) { | ||
preMask | ||
.removeClass("bp-widget__maskTmp") | ||
.addClass("bp-widget__maskNoAminate") | ||
.addClass("bp-widget__mask"); | ||
} | ||
setTimeout(function(){ | ||
mask.css('display', 'none'); | ||
mask.removeClass('bp-widget__mask').removeClass('bp-widget__closing').removeClass('bp-widget__maskNoAminate'); | ||
if (preMask) { | ||
preMask.removeClass('bp-widget__maskNoAminate'); | ||
const duration = domGetDuration(mask[0]) || 100; | ||
setTimeout(function() { | ||
mask.css("display", "none"); | ||
mask.removeClass("bp-widget__closing"); | ||
mask.removeClass("bp-widget__mask"); | ||
mask.removeClass("bp-widget__maskNoAminate"); | ||
if (!postWidget && preMask) { | ||
preMask.removeClass("bp-widget__maskNoAminate"); | ||
} | ||
@@ -461,15 +434,22 @@ | ||
} | ||
}, duration); | ||
} | ||
if (hasFix) { | ||
if (!preWidget) { | ||
$('body').removeClass('bp-widget__fixscroll'); | ||
hooks.callWidgetShake(0); | ||
$('html').css('padding-right', ''); | ||
} | ||
else { | ||
removeFixedScrollByWidget(preWidget); | ||
} | ||
} | ||
}, duration+10); | ||
} | ||
// 取当前页所有widget 并排序; | ||
function _getSortWidget(dataMark) { | ||
const masks = $(`.bp-widget[data-mark='${dataMark}']`); | ||
let widget = []; | ||
for (let i = 0; i < masks.length; i++) { | ||
const el1 = $(masks[i]); | ||
const t = Number(el1.css("z-index")) || 2000; | ||
widget.push({ | ||
zIndex: t, | ||
el: el1 | ||
}); | ||
} | ||
widget.sort((a, b) => { | ||
if (a.zIndex == b.zIndex) return 0; | ||
return a.zIndex > b.zIndex ? 1 : -1; | ||
}); | ||
return widget; | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
1363225
13045
Updated@bpui/libs@^0.2.10
Updatedfebs-browser@^1.0.3