webpackJsonp([5],{0:function(e,t,n){"use strict";function a(e){return e&&e.__esModule?e:{"default":e}}n(84),n(453),n(227);var u=n(66),o=a(u);(0,o["default"])("set","page","/popup/index.html"),(0,o["default"])("send","pageview")},66:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=function(){window.ga.apply(null,arguments)},!function(){window.GoogleAnalyticsObject="ga";var e=function n(){n.q.push(arguments)};e.q=[],e.l=Date.now(),e("create","UA-43276752-4","auto"),e("set","checkProtocolTask",null),window.ga=e;var t=document.createElement("script");t.src="https://www.google-analytics.com/analytics.js",t.async=!0,document.body.appendChild(t)}()},109:function(e,t,n){"use strict";function a(){a=s.noop,t.input=r=document.createElement("input"),r.style.position="absolute",r.style.top="-99999px",document.body.appendChild(r)}function u(e){a(),r.value=e,r.select(),document.execCommand("copy")}function o(){return a(),r.value="",r.focus(),document.execCommand("paste"),r.value}Object.defineProperty(t,"__esModule",{value:!0}),t.input=void 0,t.write=u,t.read=o;var s=n(36),r=t.input=void 0},227:function(e,t,n){"use strict";function a(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0}),t.appOptions=void 0;var u=n(22),o=a(u),s=n(21),r=a(s),c=n(157),i=a(c),l=n(464),d=a(l),f=n(46),p=a(f),v=n(51),b=a(v),w=n(36),m=n(229),h=a(m),x=t.appOptions={el:"app",template:d["default"],data:{_host:null,canInject:!1,enabled:!1},methods:{switchEnable:function(){var e=this;return(0,r["default"])(o["default"].mark(function t(){var n,a,u,s;return o["default"].wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.$data._host,a=e.enabled=!e.enabled,t.next=4,(0,b["default"])("excludeDomains");case 4:return u=t.sent,s=u.excludeDomains,a?s.splice(s.indexOf(n),1):s.push(n),t.abrupt("return",(0,p["default"])("storage.local.set",{excludeDomains:s}));case 8:case"end":return t.stop()}},t,e)}))()}},components:{"st-box":h["default"]},ready:function(){var e=this;return(0,r["default"])(o["default"].mark(function t(){var n;return o["default"].wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,w.getTabLocation)();case 2:if(n=t.sent,!n){t.next=9;break}return e.$data._host=n.host,e.canInject=!0,t.next=8,(0,w.isHostEnabled)(n);case 8:e.enabled=t.sent;case 9:case"end":return t.stop()}},t,e)}))()}};window.onload=function(){setTimeout(function(){return new i["default"](x)},0)}},228:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n(35);t["default"]=new a.Client},229:function(e,t,n){"use strict";function a(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var u=n(22),o=a(u),s=n(21),r=a(s),c=n(228),i=a(c),l=n(160),d=a(l),f=n(51),p=a(f),v=n(109);t["default"]=d["default"].extend({client:i["default"],compiled:function(){var e=this;return(0,r["default"])(o["default"].mark(function t(){var n,a,u;return o["default"].wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return e.inline=!0,e.showForm=!0,t.next=4,(0,p["default"])(["defaultApi","autoClipboard"]);case 4:n=t.sent,a=n.defaultApi,u=n.autoClipboard,e.query.api=a,u&&(e.query.text=(0,v.read)(),e.safeTranslate());case 9:case"end":return t.stop()}},t,e)}))()},ready:function(){var e=this;setTimeout(function(){return e.$els.textarea.focus()},200)}})},453:function(e,t){},464:function(e,t){e.exports="<section class=\"text-center functions\"> <div v-show=canInject> <div role=button @click=switchEnable :title=\"'点击切换为'+(enabled?'禁':'启')+'用状态'\">已对当前网站<span v-show=enabled>启用</span><span v-else>禁用</span></div> </div> <div v-else> 划词翻译没有权限操作当前网页 </div> </section> <st-box v-ref:st></st-box>"}});