(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["vendors~MagicUiPluginYybPrivacy"],{"207a":function(t,e,n){},"5a0c":function(t,e,n){!function(e,n){t.exports=n()}(0,(function(){"use strict";var t=1e3,e=6e4,n=36e5,r="millisecond",i="second",a="minute",s="hour",u="day",o="week",c="month",f="quarter",h="year",p="date",l="Invalid Date",d=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,v=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},y=function(t,e,n){var r=String(t);return!r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},$={s:y,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return(e<=0?"+":"-")+y(r,2,"0")+":"+y(i,2,"0")},m:function t(e,n){if(e.date()<n.date())return-t(n,e);var r=12*(n.year()-e.year())+(n.month()-e.month()),i=e.clone().add(r,c),a=n-i<0,s=e.clone().add(r+(a?-1:1),c);return+(-(r+(n-i)/(a?i-s:s-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:c,y:h,w:o,d:u,D:p,h:s,m:a,s:i,ms:r,Q:f}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},g="en",b={};b[g]=m;var M=function(t){return t instanceof S},w=function t(e,n,r){var i;if(!e)return g;if("string"==typeof e){var a=e.toLowerCase();b[a]&&(i=a),n&&(b[a]=n,i=a);var s=e.split("-");if(!i&&s.length>1)return t(s[0])}else{var u=e.name;b[u]=e,i=u}return!r&&i&&(g=i),i||!r&&g},O=function(t,e){if(M(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new S(n)},D=$;D.l=w,D.i=M,D.w=function(t,e){return O(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var S=function(){function m(t){this.$L=w(t.locale,null,!0),this.parse(t)}var y=m.prototype;return y.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(D.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match(d);if(r){var i=r[2]-1||0,a=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(e)}(t),this.$x=t.x||{},this.init()},y.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},y.$utils=function(){return D},y.isValid=function(){return!(this.$d.toString()===l)},y.isSame=function(t,e){var n=O(t);return this.startOf(e)<=n&&n<=this.endOf(e)},y.isAfter=function(t,e){return O(t)<this.startOf(e)},y.isBefore=function(t,e){return this.endOf(e)<O(t)},y.$g=function(t,e,n){return D.u(t)?this[e]:this.set(n,t)},y.unix=function(){return Math.floor(this.valueOf()/1e3)},y.valueOf=function(){return this.$d.getTime()},y.startOf=function(t,e){var n=this,r=!!D.u(e)||e,f=D.p(t),l=function(t,e){var i=D.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return r?i:i.endOf(u)},d=function(t,e){return D.w(n.toDate()[t].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},v=this.$W,m=this.$M,y=this.$D,$="set"+(this.$u?"UTC":"");switch(f){case h:return r?l(1,0):l(31,11);case c:return r?l(1,m):l(0,m+1);case o:var g=this.$locale().weekStart||0,b=(v<g?v+7:v)-g;return l(r?y-b:y+(6-b),m);case u:case p:return d($+"Hours",0);case s:return d($+"Minutes",1);case a:return d($+"Seconds",2);case i:return d($+"Milliseconds",3);default:return this.clone()}},y.endOf=function(t){return this.startOf(t,!1)},y.$set=function(t,e){var n,o=D.p(t),f="set"+(this.$u?"UTC":""),l=(n={},n[u]=f+"Date",n[p]=f+"Date",n[c]=f+"Month",n[h]=f+"FullYear",n[s]=f+"Hours",n[a]=f+"Minutes",n[i]=f+"Seconds",n[r]=f+"Milliseconds",n)[o],d=o===u?this.$D+(e-this.$W):e;if(o===c||o===h){var v=this.clone().set(p,1);v.$d[l](d),v.init(),this.$d=v.set(p,Math.min(this.$D,v.daysInMonth())).$d}else l&&this.$d[l](d);return this.init(),this},y.set=function(t,e){return this.clone().$set(t,e)},y.get=function(t){return this[D.p(t)]()},y.add=function(r,f){var p,l=this;r=Number(r);var d=D.p(f),v=function(t){var e=O(l);return D.w(e.date(e.date()+Math.round(t*r)),l)};if(d===c)return this.set(c,this.$M+r);if(d===h)return this.set(h,this.$y+r);if(d===u)return v(1);if(d===o)return v(7);var m=(p={},p[a]=e,p[s]=n,p[i]=t,p)[d]||1,y=this.$d.getTime()+r*m;return D.w(y,this)},y.subtract=function(t,e){return this.add(-1*t,e)},y.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||l;var r=t||"YYYY-MM-DDTHH:mm:ssZ",i=D.z(this),a=this.$H,s=this.$m,u=this.$M,o=n.weekdays,c=n.months,f=function(t,n,i,a){return t&&(t[n]||t(e,r))||i[n].slice(0,a)},h=function(t){return D.s(a%12||12,t,"0")},p=n.meridiem||function(t,e,n){var r=t<12?"AM":"PM";return n?r.toLowerCase():r},d={YY:String(this.$y).slice(-2),YYYY:this.$y,M:u+1,MM:D.s(u+1,2,"0"),MMM:f(n.monthsShort,u,c,3),MMMM:f(c,u),D:this.$D,DD:D.s(this.$D,2,"0"),d:String(this.$W),dd:f(n.weekdaysMin,this.$W,o,2),ddd:f(n.weekdaysShort,this.$W,o,3),dddd:o[this.$W],H:String(a),HH:D.s(a,2,"0"),h:h(1),hh:h(2),a:p(a,s,!0),A:p(a,s,!1),m:String(s),mm:D.s(s,2,"0"),s:String(this.$s),ss:D.s(this.$s,2,"0"),SSS:D.s(this.$ms,3,"0"),Z:i};return r.replace(v,(function(t,e){return e||d[t]||i.replace(":","")}))},y.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},y.diff=function(r,p,l){var d,v=D.p(p),m=O(r),y=(m.utcOffset()-this.utcOffset())*e,$=this-m,g=D.m(this,m);return g=(d={},d[h]=g/12,d[c]=g,d[f]=g/3,d[o]=($-y)/6048e5,d[u]=($-y)/864e5,d[s]=$/n,d[a]=$/e,d[i]=$/t,d)[v]||$,l?g:D.a(g)},y.daysInMonth=function(){return this.endOf(c).$D},y.$locale=function(){return b[this.$L]},y.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),r=w(t,e,!0);return r&&(n.$L=r),n},y.clone=function(){return D.w(this.$d,this)},y.toDate=function(){return new Date(this.valueOf())},y.toJSON=function(){return this.isValid()?this.toISOString():null},y.toISOString=function(){return this.$d.toISOString()},y.toString=function(){return this.$d.toUTCString()},m}(),_=S.prototype;return O.prototype=_,[["$ms",r],["$s",i],["$m",a],["$H",s],["$W",u],["$M",c],["$y",h],["$D",p]].forEach((function(t){_[t[1]]=function(e){return this.$g(e,t[0],t[1])}})),O.extend=function(t,e){return t.$i||(t(e,S,O),t.$i=!0),O},O.locale=w,O.isDayjs=M,O.unix=function(t){return O(1e3*t)},O.en=b[g],O.Ls=b,O.p={},O}))},"5db7":function(t,e,n){"use strict";var r=n("23e7"),i=n("a2bf"),a=n("59ed"),s=n("7b0b"),u=n("07fa"),o=n("65f0");r({target:"Array",proto:!0},{flatMap:function(t){var e,n=s(this),r=u(n);return a(t),e=o(n,0),e.length=i(e,n,n,r,0,1,t,arguments.length>1?arguments[1]:void 0),e}})},"73d9":function(t,e,n){var r=n("44d2");r("flatMap")},"79c8":function(t,e,n){"use strict";n("207a")},"8d81":function(t,e,n){var r;(function(i){"use strict";function a(t,e){var n=(65535&t)+(65535&e),r=(t>>16)+(e>>16)+(n>>16);return r<<16|65535&n}function s(t,e){return t<<e|t>>>32-e}function u(t,e,n,r,i,u){return a(s(a(a(e,t),a(r,u)),i),n)}function o(t,e,n,r,i,a,s){return u(e&n|~e&r,t,e,i,a,s)}function c(t,e,n,r,i,a,s){return u(e&r|n&~r,t,e,i,a,s)}function f(t,e,n,r,i,a,s){return u(e^n^r,t,e,i,a,s)}function h(t,e,n,r,i,a,s){return u(n^(e|~r),t,e,i,a,s)}function p(t,e){var n,r,i,s,u;t[e>>5]|=128<<e%32,t[14+(e+64>>>9<<4)]=e;var p=1732584193,l=-271733879,d=-1732584194,v=271733878;for(n=0;n<t.length;n+=16)r=p,i=l,s=d,u=v,p=o(p,l,d,v,t[n],7,-680876936),v=o(v,p,l,d,t[n+1],12,-389564586),d=o(d,v,p,l,t[n+2],17,606105819),l=o(l,d,v,p,t[n+3],22,-1044525330),p=o(p,l,d,v,t[n+4],7,-176418897),v=o(v,p,l,d,t[n+5],12,1200080426),d=o(d,v,p,l,t[n+6],17,-1473231341),l=o(l,d,v,p,t[n+7],22,-45705983),p=o(p,l,d,v,t[n+8],7,1770035416),v=o(v,p,l,d,t[n+9],12,-1958414417),d=o(d,v,p,l,t[n+10],17,-42063),l=o(l,d,v,p,t[n+11],22,-1990404162),p=o(p,l,d,v,t[n+12],7,1804603682),v=o(v,p,l,d,t[n+13],12,-40341101),d=o(d,v,p,l,t[n+14],17,-1502002290),l=o(l,d,v,p,t[n+15],22,1236535329),p=c(p,l,d,v,t[n+1],5,-165796510),v=c(v,p,l,d,t[n+6],9,-1069501632),d=c(d,v,p,l,t[n+11],14,643717713),l=c(l,d,v,p,t[n],20,-373897302),p=c(p,l,d,v,t[n+5],5,-701558691),v=c(v,p,l,d,t[n+10],9,38016083),d=c(d,v,p,l,t[n+15],14,-660478335),l=c(l,d,v,p,t[n+4],20,-405537848),p=c(p,l,d,v,t[n+9],5,568446438),v=c(v,p,l,d,t[n+14],9,-1019803690),d=c(d,v,p,l,t[n+3],14,-187363961),l=c(l,d,v,p,t[n+8],20,1163531501),p=c(p,l,d,v,t[n+13],5,-1444681467),v=c(v,p,l,d,t[n+2],9,-51403784),d=c(d,v,p,l,t[n+7],14,1735328473),l=c(l,d,v,p,t[n+12],20,-1926607734),p=f(p,l,d,v,t[n+5],4,-378558),v=f(v,p,l,d,t[n+8],11,-2022574463),d=f(d,v,p,l,t[n+11],16,1839030562),l=f(l,d,v,p,t[n+14],23,-35309556),p=f(p,l,d,v,t[n+1],4,-1530992060),v=f(v,p,l,d,t[n+4],11,1272893353),d=f(d,v,p,l,t[n+7],16,-155497632),l=f(l,d,v,p,t[n+10],23,-1094730640),p=f(p,l,d,v,t[n+13],4,681279174),v=f(v,p,l,d,t[n],11,-358537222),d=f(d,v,p,l,t[n+3],16,-722521979),l=f(l,d,v,p,t[n+6],23,76029189),p=f(p,l,d,v,t[n+9],4,-640364487),v=f(v,p,l,d,t[n+12],11,-421815835),d=f(d,v,p,l,t[n+15],16,530742520),l=f(l,d,v,p,t[n+2],23,-995338651),p=h(p,l,d,v,t[n],6,-198630844),v=h(v,p,l,d,t[n+7],10,1126891415),d=h(d,v,p,l,t[n+14],15,-1416354905),l=h(l,d,v,p,t[n+5],21,-57434055),p=h(p,l,d,v,t[n+12],6,1700485571),v=h(v,p,l,d,t[n+3],10,-1894986606),d=h(d,v,p,l,t[n+10],15,-1051523),l=h(l,d,v,p,t[n+1],21,-2054922799),p=h(p,l,d,v,t[n+8],6,1873313359),v=h(v,p,l,d,t[n+15],10,-30611744),d=h(d,v,p,l,t[n+6],15,-1560198380),l=h(l,d,v,p,t[n+13],21,1309151649),p=h(p,l,d,v,t[n+4],6,-145523070),v=h(v,p,l,d,t[n+11],10,-1120210379),d=h(d,v,p,l,t[n+2],15,718787259),l=h(l,d,v,p,t[n+9],21,-343485551),p=a(p,r),l=a(l,i),d=a(d,s),v=a(v,u);return[p,l,d,v]}function l(t){var e,n="",r=32*t.length;for(e=0;e<r;e+=8)n+=String.fromCharCode(t[e>>5]>>>e%32&255);return n}function d(t){var e,n=[];for(n[(t.length>>2)-1]=void 0,e=0;e<n.length;e+=1)n[e]=0;var r=8*t.length;for(e=0;e<r;e+=8)n[e>>5]|=(255&t.charCodeAt(e/8))<<e%32;return n}function v(t){return l(p(d(t),8*t.length))}function m(t,e){var n,r,i=d(t),a=[],s=[];for(a[15]=s[15]=void 0,i.length>16&&(i=p(i,8*t.length)),n=0;n<16;n+=1)a[n]=909522486^i[n],s[n]=1549556828^i[n];return r=p(a.concat(d(e)),512+8*e.length),l(p(s.concat(r),640))}function y(t){var e,n,r="0123456789abcdef",i="";for(n=0;n<t.length;n+=1)e=t.charCodeAt(n),i+=r.charAt(e>>>4&15)+r.charAt(15&e);return i}function $(t){return unescape(encodeURIComponent(t))}function g(t){return v($(t))}function b(t){return y(g(t))}function M(t,e){return m($(t),$(e))}function w(t,e){return y(M(t,e))}function O(t,e,n){return e?n?M(e,t):w(e,t):n?g(t):b(t)}r=function(){return O}.call(e,n,e,t),void 0===r||(t.exports=r)})()},a2bf:function(t,e,n){"use strict";var r=n("e8b5"),i=n("07fa"),a=n("3511"),s=n("0366"),u=function(t,e,n,o,c,f,h,p){var l,d,v=c,m=0,y=!!h&&s(h,p);while(m<o)m in n&&(l=y?y(n[m],m,e):n[m],f>0&&r(l)?(d=i(l),v=u(t,e,l,d,v,f-1)-1):(a(v+1),t[v]=l),v++),m++;return v};t.exports=u},df05:function(t,e,n){"use strict";n.r(e);var r=n("c7eb"),i=n("2909"),a=n("1da1"),s=(n("4de4"),n("d3b7"),n("5db7"),n("73d9"),n("6062"),n("3ca3"),n("ddb0"),n("a9e3"),n("b0c0"),n("e9c4"),n("d9e2"),n("d401"),n("8d81")),u=n.n(s),o=n("5a0c"),c=n.n(o),f="https://gftact.qq.com/cmd/getGFTPrivateArgeementHttp",h="https://cftweb.3g.qq.com/privacy",p="".concat(h,"/agreement"),l="".concat(h,"/permissions");function d(t,e){return{appId:Number(t),name:e.name,publishTime:c.a.unix(e.publishTime).format("YYYY.MM.DD"),author:e.author,developer:e.developer,versionName:e.versionName,permissionsUrl:e.permissions&&"".concat(l,"?appid=").concat(t),privacyUrl:e.privacyAgreement&&"".concat(p,"?appid=").concat(t)}}function v(t,e){return m.apply(this,arguments)}function m(){return m=Object(a["a"])(Object(r["a"])().mark((function t(e,n){var i,a,s,o;return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,i={appid:Number(e)},a=u()(JSON.stringify(i)),t.next=5,n({url:"".concat(f,"?check_token=").concat(a),method:"post",data:JSON.stringify(i),timeout:5e3,headers:{"Content-Type":"text/plain; charset=UTF-8"}});case 5:if(s=t.sent,0===s.code){t.next=8;break}throw new Error("code is ".concat(s.code));case 8:return o=d(e,s.data.gft_private_argeement),t.abrupt("return",o);case 12:return t.prev=12,t.t0=t["catch"](0),console.log(t.t0),t.abrupt("return",null);case 16:case"end":return t.stop()}}),t,null,[[0,12]])}))),m.apply(this,arguments)}var y,$=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"app-privacy container",style:t.containerStyle},[n("div",{staticClass:"line"},[n("div",{staticClass:"item left"},[t._v("应用："+t._s(t.privacyInfo.name||t.emptyText))]),n("div",{staticClass:"item right"},[t._v("版本："+t._s(t.privacyInfo.versionName||t.emptyText))])]),n("div",{staticClass:"line "},[n("div",{staticClass:"item left"},[t._v("开发商："+t._s(t.privacyInfo.developer||t.emptyText))])]),n("div",{staticClass:"line"},[n("div",{staticClass:"item left"},[t._v("运营商："+t._s(t.privacyInfo.author||t.emptyText))]),n("div",{staticClass:"item right"},[t.privacyInfo.privacyUrl?n("span",{staticClass:"sub-item active",on:{click:t.jumpPrivacy}},[t._v("隐私政策")]):n("span",[t._v("隐私政策："+t._s(t.emptyText))]),n("span",{staticClass:"split"},[t._v("  |  ")]),t.privacyInfo.permissionsUrl?n("span",{staticClass:"sub-item active",on:{click:t.jumpPremissions}},[t._v("权限详情")]):n("span",[t._v("权限详情："+t._s(t.emptyText))])])])])},g=[],b=(n("e25e"),n("9a53")),M={props:{privacyInfo:Object,app:Object,sixElementsPlacement:String},data:function(){var t=this.app.pageConfig.downloadConfig.privacyOffset,e=void 0===t?"":t;return{privacyOffset:e?"".concat(parseInt(e,10),"px"):""}},computed:{bottomValue:function(){return"bottom"===this.sixElementsPlacement?this.privacyOffset?this.privacyOffset:0:""},topValue:function(){return"top"===this.sixElementsPlacement?this.privacyOffset?this.privacyOffset:0:""},containerStyle:function(){return{bottom:this.bottomValue,top:this.topValue,position:"fixed"}}},methods:{jumpPremissions:function(){this.privacyInfo.permissionsUrl&&Object(b["a"])(this.privacyInfo.permissionsUrl)},jumpPrivacy:function(){this.privacyInfo.privacyUrl&&Object(b["a"])(this.privacyInfo.privacyUrl)}}},w=M,O=(n("79c8"),n("2877")),D=Object(O["a"])(w,$,g,!1,null,"3cbfd5b1",null),S=D.exports,_=!1,x="yyb-download",C="container",T="tabs";function I(){return j.apply(this,arguments)}function j(){return j=Object(a["a"])(Object(r["a"])().mark((function t(){var e,n;return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!_){t.next=2;break}return t.abrupt("return");case 2:if(_=!0,e=k(this.app.pageConfig),!(0===e.length||e.length>1)){t.next=6;break}return t.abrupt("return");case 6:return t.next=8,v(e[0],this.fetch.post);case 8:if(n=t.sent,n){t.next=11;break}return t.abrupt("return");case 11:U(n,this.app,this.config.sixElementsPlacement);case 12:case"end":return t.stop()}}),t,this)}))),j.apply(this,arguments)}function k(t){var e=t.items.flatMap((function(t){return Y(t)})).filter((function(t){return!!t}));return Object(i["a"])(new Set(Object(i["a"])(e)))}function Y(t){return t.type===x?t.appId?[t.appId]:[]:t.type===C?t.items?t.items.flatMap((function(t){return Y(t)})):[]:t.type===T&&t.items?t.items.flatMap((function(t){return t.items?t.items.flatMap((function(t){return Y(t)})):[]})):[]}function U(t,e,n){var r=y.extend(S),i=new r({propsData:{privacyInfo:t,app:e,sixElementsPlacement:n}}),a=document.createElement("div");a.appendChild(i.$mount().$el),A(a,"top"===n)}function A(t,e){t.style.width="100%",t.style.height="74px",t.firstChild.style.bottom=e?"":0,e?document.body.prepend(t):document.body.appendChild(t)}e["default"]={name:"@tencent/magic-ui-plugin-yyb-privacy",pluginType:"yyb-privacy",install:function(t){y=t,t.prototype.privacy={init:I}}}}}]);